Skip to content

Commit

Permalink
fix clippy2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
HGZ-20 committed Oct 21, 2023
1 parent 68fba9b commit e645338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/clippy/clippy2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
fn main() {
let mut res = 42;
let option = Some(12);
while let Some(x) = option {
if let Some(x) = option {
res += x;
}
println!("{}", res);
Expand Down

0 comments on commit e645338

Please sign in to comment.