]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/matches.rs
Fix Binding for rustc update
[rust.git] / clippy_lints / src / matches.rs
index 3de1d01285ce3861e2d4c298d2145fb2997d9c02..fcff1e16f38308da0c411e3b93e2d879bd4abbd8 100644 (file)
@@ -482,7 +482,7 @@ fn check_wild_enum_match(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
         for pat in &arm.pats {
             if let PatKind::Wild = pat.node {
                 wildcard_span = Some(pat.span);
-            } else if let PatKind::Binding(_, _, ident, None) = pat.node {
+            } else if let PatKind::Binding(_, _, _, ident, None) = pat.node {
                 wildcard_span = Some(pat.span);
                 wildcard_ident = Some(ident);
             }