oh good, the .into() can be added even if the type already matches
This commit is contained in:
parent
773b9cbafb
commit
5540cb62c4
|
@ -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…
Reference in New Issue