diff options
| author | rsulli55 <rsulli55@gmail.com> | 2020-10-25 18:11:38 -0700 |
|---|---|---|
| committer | Ryan Sullivant <rsulli55@gmail.com> | 2020-11-10 23:18:47 -0700 |
| commit | e9612f3eca5566b601dda60c999be69e50f89cac (patch) | |
| tree | 74b1d0171b341a538180f33752e0e68fb1329b27 | |
| parent | 55dc822062eb760afff0d242dea193aabc2c9771 (diff) | |
| download | rust-e9612f3eca5566b601dda60c999be69e50f89cac.tar.gz rust-e9612f3eca5566b601dda60c999be69e50f89cac.zip | |
Remove `to_string` on msg
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index bd04a95e4a1..4df1b3d197f 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()`.".to_string(); + `contains()`"; let mut applicability = Applicability::MachineApplicable; let find_arg = snippet_with_applicability(cx, search_args[1].span, "..", &mut applicability); span_lint_and_sugg( |
