You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loop{let foo = match y {Some(x) => x,None => break,};let bar = Some(foo);}
clippy seems to suggest,
whileletSome(x) = y {let bar = Some(foo);}
It's actually the wrong let binding. The code which lives at src/loops.rs, seems to print the match arm directly, instead of checking whether it's the right pattern.
The text was updated successfully, but these errors were encountered:
For the following code,
clippy seems to suggest,
It's actually the wrong
let
binding. The code which lives atsrc/loops.rs
, seems to print the match arm directly, instead of checking whether it's the right pattern.The text was updated successfully, but these errors were encountered: