remove unnecessary to_string
and String::new
for tool_only_span_suggestion
This commit is contained in:
parent
77d6176e69
commit
fd1290a631
6 changed files with 7 additions and 12 deletions
|
@ -330,7 +330,7 @@ impl<'a, 'b> Context<'a, 'b> {
|
|||
err.tool_only_span_suggestion(
|
||||
sp,
|
||||
&format!("use the `{}` trait", name),
|
||||
(*fmt).to_string(),
|
||||
*fmt,
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue