diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-15 10:56:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-15 10:56:58 +0100 |
| commit | 9ca0bd518ac5b30eea0319c92566eaf77f397708 (patch) | |
| tree | 5f7e8958b9da0f98907c85af2976e80350ec7e6a /compiler/rustc_parse/src/parser | |
| parent | df89fd2063aaa060c72c81254db0b930ff379e9a (diff) | |
| parent | 97e844a032c47d4b3e70d2043f809767e437ac24 (diff) | |
| download | rust-9ca0bd518ac5b30eea0319c92566eaf77f397708.tar.gz rust-9ca0bd518ac5b30eea0319c92566eaf77f397708.zip | |
Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 25beed1ecf9..9677e7642b8 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -2236,7 +2236,7 @@ impl<'a> Parser<'a> { err.span_suggestion( seq_span, "...or a vertical bar to match on multiple alternatives", - seq_snippet.replace(",", " |"), + seq_snippet.replace(',', " |"), Applicability::MachineApplicable, ); } |
