Rollup merge of #89943 - matthiaskrgr:clpcompl, r=oli-obk
clippy::complexity fixes
This commit is contained in:
commit
b8173c59c6
5 changed files with 9 additions and 11 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue