about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-13 22:58:58 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-12-14 12:40:28 +0100
commit97e844a032c47d4b3e70d2043f809767e437ac24 (patch)
tree6f1fc68faba406c3525cdc884b8cc211a5c54eae /compiler/rustc_interface
parent1796de7bb123df3f3d32124ededf1344434f672e (diff)
downloadrust-97e844a032c47d4b3e70d2043f809767e437ac24.tar.gz
rust-97e844a032c47d4b3e70d2043f809767e437ac24.zip
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_interface')
-rw-r--r--compiler/rustc_interface/src/passes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index da76f221269..34865900495 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -584,7 +584,7 @@ fn output_conflicts_with_dir(output_paths: &[PathBuf]) -> Option<PathBuf> {
 fn escape_dep_filename(filename: &str) -> String {
     // Apparently clang and gcc *only* escape spaces:
     // https://llvm.org/klaus/clang/commit/9d50634cfc268ecc9a7250226dd5ca0e945240d4
-    filename.replace(" ", "\\ ")
+    filename.replace(' ', "\\ ")
 }
 
 // Makefile comments only need escaping newlines and `\`.