diff options
| author | Daniel Wagner-Hall <dawagner@gmail.com> | 2019-02-18 23:16:53 +0000 |
|---|---|---|
| committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2019-02-18 23:16:53 +0000 |
| commit | 4009a441189ff8fa9a46acd52a9f7d2f629e47df (patch) | |
| tree | cc063623da796f89cdeb4a677f5ee63b3250852e | |
| parent | bcefd688c99895275317eb95a1ec62743526208a (diff) | |
| download | rust-4009a441189ff8fa9a46acd52a9f7d2f629e47df.tar.gz rust-4009a441189ff8fa9a46acd52a9f7d2f629e47df.zip | |
Fix Binding for rustc update
| -rw-r--r-- | clippy_lints/src/matches.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
