oh good, the .into() can be added even if the type already matches

This commit is contained in:
Vincent Batts 2023-01-14 21:09:13 -05:00
parent 773b9cbafb
commit 5540cb62c4
23 changed files with 4 additions and 1 deletions

View File

@ -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.