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_save_analysis | |
| 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_save_analysis')
| -rw-r--r-- | compiler/rustc_save_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/lib.rs b/compiler/rustc_save_analysis/src/lib.rs index c7f8fe3a88a..6f86bafbe45 100644 --- a/compiler/rustc_save_analysis/src/lib.rs +++ b/compiler/rustc_save_analysis/src/lib.rs @@ -1036,7 +1036,7 @@ fn find_config(supplied: Option<Config>) -> Config { // Helper function to escape quotes in a string fn escape(s: String) -> String { - s.replace("\"", "\"\"") + s.replace('\"', "\"\"") } // Helper function to determine if a span came from a |
