clippy::complexity changes

This commit is contained in:
Matthias Krüger 2021-10-16 10:18:17 +02:00
parent 6cc0a764e0
commit c645d3f3b9
5 changed files with 9 additions and 11 deletions

View file

@ -171,7 +171,7 @@ fn get_features(
}
if let Some(allowed) = sess.opts.debugging_opts.allow_features.as_ref() {
if allowed.iter().find(|&f| name.as_str() == *f).is_none() {
if allowed.iter().all(|f| name.as_str() != *f) {
struct_span_err!(
span_handler,
mi.span(),