Skip to content

Commit 2cc798b

Browse files
authored
Rollup merge of rust-lang#98191 - TaKO8Ki:remove-rest-of-unnecessary-to-string, r=Dylan-DPC
Remove the rest of unnecessary `to_string` I removed most of unnecessary `to_string` in rust-lang#98043. This patch removes the rest of them I missed.
2 parents 51e2d6a + 72c73f8 commit 2cc798b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/sugg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ impl<T: LintContext> DiagnosticExt<T> for rustc_errors::Diagnostic {
771771
}
772772
}
773773

774-
self.span_suggestion(remove_span, msg, String::new(), applicability);
774+
self.span_suggestion(remove_span, msg, "", applicability);
775775
}
776776
}
777777

0 commit comments

Comments
 (0)