Added period back to lint search_is_some and ran

`update-all-references.sh`
This commit is contained in:
Ryan Sullivant 2020-10-31 12:40:56 -07:00
parent fb74b4802e
commit ee1b959054
2 changed files with 3 additions and 1 deletions

View File

@ -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(

View File

@ -20,3 +20,5 @@ LL | | ).next();
|
= note: `-D clippy::filter-next` implied by `-D warnings`
error: aborting due to 2 previous errors