File tree 1 file changed +4
-4
lines changed
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>(
63
63
SEARCH_IS_SOME ,
64
64
method_span. with_hi ( expr. span . hi ( ) ) ,
65
65
& msg,
66
- "use `any()` instead " ,
66
+ "consider using " ,
67
67
format ! (
68
68
"any({})" ,
69
69
any_search_snippet. as_ref( ) . map_or( & * search_snippet, String :: as_str)
@@ -77,7 +77,7 @@ pub(super) fn check<'tcx>(
77
77
SEARCH_IS_SOME ,
78
78
expr. span ,
79
79
& msg,
80
- "use `!_.any()` instead " ,
80
+ "consider using " ,
81
81
format ! (
82
82
"!{iter}.any({})" ,
83
83
any_search_snippet. as_ref( ) . map_or( & * search_snippet, String :: as_str)
@@ -118,7 +118,7 @@ pub(super) fn check<'tcx>(
118
118
SEARCH_IS_SOME ,
119
119
method_span. with_hi ( expr. span . hi ( ) ) ,
120
120
& msg,
121
- "use `contains()` instead " ,
121
+ "consider using " ,
122
122
format ! ( "contains({find_arg})" ) ,
123
123
applicability,
124
124
) ;
@@ -132,7 +132,7 @@ pub(super) fn check<'tcx>(
132
132
SEARCH_IS_SOME ,
133
133
expr. span ,
134
134
& msg,
135
- "use `!_.contains()` instead " ,
135
+ "consider using " ,
136
136
format ! ( "!{string}.contains({find_arg})" ) ,
137
137
applicability,
138
138
) ;
You can’t perform that action at this time.
0 commit comments