remove unnecessary to_string
and String::new
This commit is contained in:
parent
c570ab5a0b
commit
77d6176e69
88 changed files with 292 additions and 340 deletions
|
@ -1194,7 +1194,7 @@ pub fn expr_to_spanned_string<'a>(
|
|||
err.span_suggestion(
|
||||
expr.span.shrink_to_lo(),
|
||||
"consider removing the leading `b`",
|
||||
String::new(),
|
||||
"",
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
Some((err, true))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue