diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-11-05 14:50:22 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-11-05 14:50:23 -0500 |
| commit | 2c7b7e8c56849d272dc7acbd5f0ad0ec02c06e52 (patch) | |
| tree | d1e0bb7240b7bd241e2916850286f7b428fff3dd | |
| parent | 5239a90f70c7e03660c2d9f4eb395de7dc7be37b (diff) | |
| download | rust-2c7b7e8c56849d272dc7acbd5f0ad0ec02c06e52.tar.gz rust-2c7b7e8c56849d272dc7acbd5f0ad0ec02c06e52.zip | |
Remove if let check for match_ref_pats
| -rw-r--r-- | clippy_lints/src/matches.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 08b652f4f3f..88b1685f52f 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -632,9 +632,6 @@ impl<'tcx> LateLintPass<'tcx> for Matches { if let ExprKind::Match(ex, arms, _) = expr.kind { check_match_ref_pats(cx, ex, arms.iter().map(|el| el.pat), expr); } - if let Some(higher::IfLet { let_pat, let_expr, .. }) = higher::IfLet::hir(cx, expr) { - check_match_ref_pats(cx, let_expr, once(let_pat), expr); - } } fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx Local<'_>) { |
