Skip to content

Commit

Permalink
Remove if let check for match_ref_pats
Browse files Browse the repository at this point in the history
  • Loading branch information
camsteffen committed Nov 5, 2021
1 parent 5239a90 commit 2c7b7e8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clippy_lints/src/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<'_>) {
Expand Down

0 comments on commit 2c7b7e8

Please sign in to comment.