Skip to content

Commit

Permalink
Added period back to lint search_is_some and ran
Browse files Browse the repository at this point in the history
`update-all-references.sh`
  • Loading branch information
rsulli55 committed Oct 31, 2020
1 parent 1bc93bf commit 31cb5ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3073,7 +3073,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(
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/methods.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ LL | | ).next();
|
= note: `-D clippy::filter-next` implied by `-D warnings`

error: aborting due to 2 previous errors

0 comments on commit 31cb5ce

Please sign in to comment.