about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-03 21:44:47 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2022-02-03 21:45:51 +0100
commitde2abc29e9f890433bef39eac46a84bdb9eaecf7 (patch)
tree36035607a8402f78c6cbb9de7cc316dbbbcf1825 /compiler/rustc_interface/src
parent4e8fb743ccbec27344b2dd42de7057f41d4ebfdd (diff)
downloadrust-de2abc29e9f890433bef39eac46a84bdb9eaecf7.tar.gz
rust-de2abc29e9f890433bef39eac46a84bdb9eaecf7.zip
clippy::perf fixes
single_char_pattern and to_string_in_format_args
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
index 26343561959..237aef1cf23 100644
--- a/compiler/rustc_interface/src/interface.rs
+++ b/compiler/rustc_interface/src/interface.rs
@@ -126,7 +126,7 @@ pub fn parse_cfgspecs(cfgspecs: Vec<String>) -> FxHashSet<(String, Option<String
 
                 // If the user tried to use a key="value" flag, but is missing the quotes, provide
                 // a hint about how to resolve this.
-                if s.contains("=") && !s.contains("=\"") && !s.ends_with("\"") {
+                if s.contains('=') && !s.contains("=\"") && !s.ends_with('"') {
                     error!(concat!(
                         r#"expected `key` or `key="value"`, ensure escaping is appropriate"#,
                         r#" for your shell, try 'key="value"' or key=\"value\""#