rustlings/exercises/22_clippy/clippy2.rs
Denis-Cosmin NUTIU 06573e87ac initial commit
2024-10-28 22:46:17 +02:00

10 lines
167 B
Rust

fn main() {
let mut res = 42;
let option = Some(12);
// TODO: Fix the Clippy lint.
for x in option {
res += x;
}
println!("{res}");
}