mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Remove to_string
on msg
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
55dc822062
commit
e9612f3eca
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user