remove unnecessary to_string
and String::new
for tool_only_span_suggestion
This commit is contained in:
parent
f2d9acfc01
commit
d024997943
@ -281,7 +281,7 @@ fn check<'tcx>(
|
||||
diag.tool_only_span_suggestion(
|
||||
local_stmt.span,
|
||||
"remove the local",
|
||||
String::new(),
|
||||
"",
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user