This repository has been archived on 2023-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
|
// clippy2.rs
|
|
// Make me compile! Execute `rustlings hint clippy2` for hints :)
|
|
|
|
// I AM NOT DONE
|
|
|
|
fn main() {
|
|
let mut res = 42;
|
|
let option = Some(12);
|
|
for x in option {
|
|
res += x;
|
|
}
|
|
println!("{}", res);
|
|
}
|