clippy2.rs (167B)
1 fn main() { 2 let mut res = 42; 3 let option = Some(12); 4 // TODO: Fix the Clippy lint. 5 for x in option { 6 res += x; 7 } 8 9 println!("{res}"); 10 }
rustlingssolving rustlings ft. dracuxan | |
| git clone [email protected]:dracuxan/rustlings.git | |
| Log | Files | Refs |