Skip to content

Commit d024997

Browse files
committed
remove unnecessary to_string and String::new for tool_only_span_suggestion
1 parent f2d9acf commit d024997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_late_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn check<'tcx>(
281281
diag.tool_only_span_suggestion(
282282
local_stmt.span,
283283
"remove the local",
284-
String::new(),
284+
"",
285285
Applicability::MachineApplicable,
286286
);
287287

0 commit comments

Comments
 (0)