From 4009a441189ff8fa9a46acd52a9f7d2f629e47df Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Mon, 18 Feb 2019 23:16:53 +0000 Subject: [PATCH] Fix Binding for rustc update --- clippy_lints/src/matches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 3de1d01285c..fcff1e16f38 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -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); } -- 2.44.0