mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 16:53:30 +02:00
clippy2 solution
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user