Rollup merge of #69567 - matthiaskrgr:useless_fmt, r=nagisa

use .to_string() instead of format!() macro to create strings

handles what is left after https://github.com/rust-lang/rust/pull/69541
This commit is contained in:
Dylan DPC 2020-02-29 02:16:24 +01:00 committed by GitHub
commit bbfec7ca41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 44 additions and 45 deletions

View file

@ -216,7 +216,7 @@ impl<'a> Parser<'a> {
.span_suggestion(
seq_span,
"...or a vertical bar to match on multiple alternatives",
format!("{}", seq_snippet.replace(",", " |")),
seq_snippet.replace(",", " |"),
Applicability::MachineApplicable,
);
}