We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f202810 commit 422c07cCopy full SHA for 422c07c
clippy_lints/src/wildcard_imports.rs
@@ -198,7 +198,7 @@ impl WildcardImports {
198
// Allow "...prelude::..::*" imports.
199
// Many crates have a prelude, and it is imported as a glob by design.
200
fn is_prelude_import(segments: &[PathSegment<'_>]) -> bool {
201
- segments.iter().filter(|ps| ps.ident.as_str() == "prelude").count() > 0
+ segments.iter().any(|ps| ps.ident.as_str() == "prelude")
202
}
203
204
// Allow "super::*" imports in tests.
0 commit comments