about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-07-17 23:35:57 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2021-07-25 12:25:26 +0200
commitd709e6efefee52dc74b5f05195d6db3e9bddcd71 (patch)
treec2119bdf800f14875d78a6dd831de6b292454ad3 /compiler/rustc_codegen_llvm/src
parentdc722bfd74640112c0b7b2c6d1cf348e18c18267 (diff)
downloadrust-d709e6efefee52dc74b5f05195d6db3e9bddcd71.tar.gz
rust-d709e6efefee52dc74b5f05195d6db3e9bddcd71.zip
clippy::single_char_pattern
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index cb9c6269b66..0ca51bd2883 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -365,7 +365,7 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
 
                 features_string
             };
-            features.extend(features_string.split(",").map(String::from));
+            features.extend(features_string.split(',').map(String::from));
         }
         Some(_) | None => {}
     };
@@ -374,7 +374,7 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
         if s.is_empty() {
             return None;
         }
-        let feature = if s.starts_with("+") || s.starts_with("-") {
+        let feature = if s.starts_with('+') || s.starts_with('-') {
             &s[1..]
         } else {
             return Some(s.to_string());