oh good, the .into() can be added even if the type already matches
This commit is contained in:
parent
773b9cbafb
commit
5540cb62c4
23 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@ fn main() {
|
|||
|
||||
for i in 0..3 {
|
||||
println!("a[{i}]: {}", a[i]);
|
||||
println!("a[{i}] * x * y = {}", multiply(a[i], x.into(), y.into()));
|
||||
println!(
|
||||
"a[{i}] * x * y = {}",
|
||||
multiply(a[i].into(), x.into(), y.into())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue