From d709e6efefee52dc74b5f05195d6db3e9bddcd71 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Sat, 17 Jul 2021 23:35:57 +0200 Subject: clippy::single_char_pattern --- compiler/rustc_codegen_llvm/src/llvm_util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_codegen_llvm/src') 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 { 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 { 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()); -- cgit 1.4.1-3-g733a5