remove unnecessary to_string and String::new for tool_only_span_suggestion
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user