We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_string
1 parent 55dc822 commit e9612f3Copy full SHA for e9612f3
clippy_lints/src/methods/mod.rs
@@ -3111,7 +3111,7 @@ fn lint_search_is_some<'tcx>(
3111
then {
3112
let msg = "called `is_some()` after calling `find()` \
3113
on a string. This is more succinctly expressed by calling \
3114
- `contains()`.".to_string();
+ `contains()`";
3115
let mut applicability = Applicability::MachineApplicable;
3116
let find_arg = snippet_with_applicability(cx, search_args[1].span, "..", &mut applicability);
3117
span_lint_and_sugg(
0 commit comments