@@ -42,7 +42,7 @@ impl<'analysis> AnalysisFilter<'analysis> {
4242 /// Return `true` if the group `G` matches this filter
4343 pub fn match_group < G : RuleGroup > ( & self ) -> bool {
4444 self . match_category :: < G :: Category > ( )
45- && self . enabled_rules . map_or ( true , |enabled_rules| {
45+ && self . enabled_rules . is_none_or ( |enabled_rules| {
4646 enabled_rules. iter ( ) . any ( |filter| filter. match_group :: < G > ( ) )
4747 } )
4848 && !self
@@ -54,7 +54,7 @@ impl<'analysis> AnalysisFilter<'analysis> {
5454 /// Return `true` if the rule `R` matches this filter
5555 pub fn match_rule < R : Rule > ( & self ) -> bool {
5656 self . match_category :: < <R :: Group as RuleGroup >:: Category > ( )
57- && self . enabled_rules . map_or ( true , |enabled_rules| {
57+ && self . enabled_rules . is_none_or ( |enabled_rules| {
5858 enabled_rules. iter ( ) . any ( |filter| filter. match_rule :: < R > ( ) )
5959 } )
6060 && !self
@@ -94,13 +94,13 @@ impl<'a> RuleFilter<'a> {
9494 }
9595}
9696
97- impl < ' a > Debug for RuleFilter < ' a > {
97+ impl Debug for RuleFilter < ' _ > {
9898 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
9999 Display :: fmt ( self , f)
100100 }
101101}
102102
103- impl < ' a > Display for RuleFilter < ' a > {
103+ impl Display for RuleFilter < ' _ > {
104104 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
105105 match self {
106106 RuleFilter :: Group ( group) => {
@@ -113,7 +113,7 @@ impl<'a> Display for RuleFilter<'a> {
113113 }
114114}
115115
116- impl < ' a > pg_console:: fmt:: Display for RuleFilter < ' a > {
116+ impl pg_console:: fmt:: Display for RuleFilter < ' _ > {
117117 fn fmt ( & self , fmt : & mut pg_console:: fmt:: Formatter ) -> std:: io:: Result < ( ) > {
118118 match self {
119119 RuleFilter :: Group ( group) => {
0 commit comments