@@ -16,7 +16,7 @@ mod match_same_arms;
1616mod match_single_binding;
1717mod match_wild_enum;
1818mod match_wild_err_arm;
19- mod nop_match ;
19+ mod needless_match ;
2020mod overlapping_arms;
2121mod redundant_pattern_match;
2222mod rest_pat_in_fully_bound_struct;
@@ -605,8 +605,8 @@ declare_clippy_lint! {
605605 /// }
606606 /// ```
607607 #[ clippy:: version = "1.61.0" ]
608- pub NOP_MATCH ,
609- correctness ,
608+ pub NEEDLESS_MATCH ,
609+ complexity ,
610610 "`match` or match-like `if let` that are unnecessary"
611611}
612612
@@ -643,7 +643,7 @@ impl_lint_pass!(Matches => [
643643 REDUNDANT_PATTERN_MATCHING ,
644644 MATCH_LIKE_MATCHES_MACRO ,
645645 MATCH_SAME_ARMS ,
646- NOP_MATCH ,
646+ NEEDLESS_MATCH ,
647647] ) ;
648648
649649impl < ' tcx > LateLintPass < ' tcx > for Matches {
@@ -667,7 +667,7 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
667667 overlapping_arms:: check ( cx, ex, arms) ;
668668 match_wild_enum:: check ( cx, ex, arms) ;
669669 match_as_ref:: check ( cx, ex, arms, expr) ;
670- nop_match :: check_match ( cx, ex, arms) ;
670+ needless_match :: check_match ( cx, ex, arms) ;
671671
672672 if self . infallible_destructuring_match_linted {
673673 self . infallible_destructuring_match_linted = false ;
@@ -686,7 +686,7 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
686686 match_like_matches:: check ( cx, expr) ;
687687 }
688688 redundant_pattern_match:: check ( cx, expr) ;
689- nop_match :: check ( cx, expr) ;
689+ needless_match :: check ( cx, expr) ;
690690 }
691691 }
692692
0 commit comments