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
|
@ -271,7 +271,7 @@ impl<'a> Parser<'a> {
|
|||
err.span_suggestion_verbose(
|
||||
prev_token.shrink_to_hi().to(self.prev_token.span),
|
||||
"consider joining the two `where` clauses into one",
|
||||
",".to_owned(),
|
||||
",",
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
err.emit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue