diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-29 02:16:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-29 02:16:24 +0100 |
| commit | bbfec7ca41887af04abb4510677c4539a95f03a2 (patch) | |
| tree | beca90f2df096a812f1015ada4f9d9638cd73849 /src/librustc_parse/parser | |
| parent | 1bb6760968b92acee0a1f9f7d84fa10805157b59 (diff) | |
| parent | 85e59b7664734b3fb0122aa8d341ed7e878569c1 (diff) | |
| download | rust-bbfec7ca41887af04abb4510677c4539a95f03a2.tar.gz rust-bbfec7ca41887af04abb4510677c4539a95f03a2.zip | |
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
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/pat.rs b/src/librustc_parse/parser/pat.rs index 520d325f16b..4dc2f775173 100644 --- a/src/librustc_parse/parser/pat.rs +++ b/src/librustc_parse/parser/pat.rs @@ -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, ); } |
