1
Fork 0

remove unnecessary to_string and String::new for tool_only_span_suggestion

This commit is contained in:
Takayuki Maeda 2022-06-13 16:01:16 +09:00
parent 77d6176e69
commit fd1290a631
6 changed files with 7 additions and 12 deletions

View file

@ -174,7 +174,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
err.tool_only_span_suggestion(
semi_span,
"remove this semicolon",
String::new(),
"",
Applicability::MaybeIncorrect,
);
}),