clippy2 solution

This commit is contained in:
mo8it
2024-07-01 11:55:18 +02:00
parent 78728d5238
commit a0e810b471
3 changed files with 15 additions and 3 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
fn main() {
let mut res = 42;
let option = Some(12);
// TODO: Fix the Clippy lint.
for x in option {
res += x;
}
println!("{}", res);
println!("{res}");
}