clippy::single_char_pattern

This commit is contained in:
Matthias Krüger 2021-07-17 23:35:57 +02:00
parent dc722bfd74
commit d709e6efef
4 changed files with 5 additions and 5 deletions

View file

@ -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());