@@ -16,7 +16,7 @@ mod match_same_arms;
16
16
mod match_single_binding;
17
17
mod match_wild_enum;
18
18
mod match_wild_err_arm;
19
- mod nop_match ;
19
+ mod needless_match ;
20
20
mod overlapping_arms;
21
21
mod redundant_pattern_match;
22
22
mod rest_pat_in_fully_bound_struct;
@@ -605,8 +605,8 @@ declare_clippy_lint! {
605
605
/// }
606
606
/// ```
607
607
#[ clippy:: version = "1.61.0" ]
608
- pub NOP_MATCH ,
609
- correctness ,
608
+ pub NEEDLESS_MATCH ,
609
+ complexity ,
610
610
"`match` or match-like `if let` that are unnecessary"
611
611
}
612
612
@@ -643,7 +643,7 @@ impl_lint_pass!(Matches => [
643
643
REDUNDANT_PATTERN_MATCHING ,
644
644
MATCH_LIKE_MATCHES_MACRO ,
645
645
MATCH_SAME_ARMS ,
646
- NOP_MATCH ,
646
+ NEEDLESS_MATCH ,
647
647
] ) ;
648
648
649
649
impl < ' tcx > LateLintPass < ' tcx > for Matches {
@@ -667,7 +667,7 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
667
667
overlapping_arms:: check ( cx, ex, arms) ;
668
668
match_wild_enum:: check ( cx, ex, arms) ;
669
669
match_as_ref:: check ( cx, ex, arms, expr) ;
670
- nop_match :: check_match ( cx, ex, arms) ;
670
+ needless_match :: check_match ( cx, ex, arms) ;
671
671
672
672
if self . infallible_destructuring_match_linted {
673
673
self . infallible_destructuring_match_linted = false ;
@@ -686,7 +686,7 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
686
686
match_like_matches:: check ( cx, expr) ;
687
687
}
688
688
redundant_pattern_match:: check ( cx, expr) ;
689
- nop_match :: check ( cx, expr) ;
689
+ needless_match :: check ( cx, expr) ;
690
690
}
691
691
}
692
692
0 commit comments