Added period back to lint search_is_some
and ran
`update-all-references.sh`
This commit is contained in:
parent
fb74b4802e
commit
ee1b959054
@ -3111,7 +3111,7 @@ fn lint_search_is_some<'tcx>(
|
||||
then {
|
||||
let msg = "called `is_some()` after calling `find()` \
|
||||
on a string. This is more succinctly expressed by calling \
|
||||
`contains()`";
|
||||
`contains()`.";
|
||||
let mut applicability = Applicability::MachineApplicable;
|
||||
let find_arg = snippet_with_applicability(cx, search_args[1].span, "..", &mut applicability);
|
||||
span_lint_and_sugg(
|
||||
|
@ -20,3 +20,5 @@ LL | | ).next();
|
||||
|
|
||||
= note: `-D clippy::filter-next` implied by `-D warnings`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user