Skip to content

Commit e9612f3

Browse files
rsulli55flip1995
andcommitted
Remove to_string on msg
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent 55dc822 commit e9612f3

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-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()`.".to_string();
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(

0 commit comments

Comments
 (0)