We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce2bc3 commit ba59ed0Copy full SHA for ba59ed0
src/matches.rs
@@ -140,7 +140,7 @@ fn is_unit_expr(expr: &Expr) -> bool {
140
fn has_only_ref_pats(arms: &[Arm]) -> bool {
141
let mapped = arms.iter().flat_map(|a| &a.pats).map(|p| match p.node {
142
PatRegion(..) => Some(true), // &-patterns
143
- PatWild(..) => Some(false), // an "anything" wildcard is also fine
+ PatWild => Some(false), // an "anything" wildcard is also fine
144
_ => None, // any other pattern is not fine
145
}).collect::<Option<Vec<bool>>>();
146
// look for Some(v) where there's at least one true element
0 commit comments