diff options
| author | Ryan Sullivant <rsulli55@gmail.com> | 2020-10-31 12:40:56 -0700 |
|---|---|---|
| committer | Ryan Sullivant <rsulli55@gmail.com> | 2020-11-10 23:18:47 -0700 |
| commit | ee1b959054aaf69968d440915766e834568de8fd (patch) | |
| tree | 831cff2b09245aa5d3a05d483b5d0cf400115d5b | |
| parent | fb74b4802eda6da49f0ea9f2bc1ef238306c1329 (diff) | |
| download | rust-ee1b959054aaf69968d440915766e834568de8fd.tar.gz rust-ee1b959054aaf69968d440915766e834568de8fd.zip | |
Added period back to lint `search_is_some` and ran
`update-all-references.sh`
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 2 | ||||
| -rw-r--r-- | tests/ui/methods.stderr | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index fc66bf0422f..19e63fbddf7 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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( diff --git a/tests/ui/methods.stderr b/tests/ui/methods.stderr index bf4675966df..33aba630a53 100644 --- a/tests/ui/methods.stderr +++ b/tests/ui/methods.stderr @@ -20,3 +20,5 @@ LL | | ).next(); | = note: `-D clippy::filter-next` implied by `-D warnings` +error: aborting due to 2 previous errors + |
