Skip to content

Commit ee1b959

Browse files
committed
Added period back to lint search_is_some and ran
`update-all-references.sh`
1 parent fb74b48 commit ee1b959

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,7 @@ fn lint_search_is_some<'tcx>(
31113111
then {
31123112
let msg = "called `is_some()` after calling `find()` \
31133113
on a string. This is more succinctly expressed by calling \
3114-
`contains()`";
3114+
`contains()`.";
31153115
let mut applicability = Applicability::MachineApplicable;
31163116
let find_arg = snippet_with_applicability(cx, search_args[1].span, "..", &mut applicability);
31173117
span_lint_and_sugg(

tests/ui/methods.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ LL | | ).next();
2020
|
2121
= note: `-D clippy::filter-next` implied by `-D warnings`
2222

23+
error: aborting due to 2 previous errors
24+

0 commit comments

Comments
 (0)