File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ pub(super) fn check<'tcx>(
6363 SEARCH_IS_SOME ,
6464 method_span. with_hi ( expr. span . hi ( ) ) ,
6565 & msg,
66- "use `any()` instead " ,
66+ "consider using " ,
6767 format ! (
6868 "any({})" ,
6969 any_search_snippet. as_ref( ) . map_or( & * search_snippet, String :: as_str)
@@ -77,7 +77,7 @@ pub(super) fn check<'tcx>(
7777 SEARCH_IS_SOME ,
7878 expr. span ,
7979 & msg,
80- "use `!_.any()` instead " ,
80+ "consider using " ,
8181 format ! (
8282 "!{iter}.any({})" ,
8383 any_search_snippet. as_ref( ) . map_or( & * search_snippet, String :: as_str)
@@ -118,7 +118,7 @@ pub(super) fn check<'tcx>(
118118 SEARCH_IS_SOME ,
119119 method_span. with_hi ( expr. span . hi ( ) ) ,
120120 & msg,
121- "use `contains()` instead " ,
121+ "consider using " ,
122122 format ! ( "contains({find_arg})" ) ,
123123 applicability,
124124 ) ;
@@ -132,7 +132,7 @@ pub(super) fn check<'tcx>(
132132 SEARCH_IS_SOME ,
133133 expr. span ,
134134 & msg,
135- "use `!_.contains()` instead " ,
135+ "consider using " ,
136136 format ! ( "!{string}.contains({find_arg})" ) ,
137137 applicability,
138138 ) ;
You can’t perform that action at this time.
0 commit comments