Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bdc75db

Browse files
committed
Run cargo dev fmt
1 parent 0c14ea8 commit bdc75db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clippy_lints/src/wildcard_imports.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ impl LateLintPass<'_, '_> for WildcardImports {
158158
// Allow "...prelude::*" imports.
159159
// Many crates have a prelude, and it is imported as a glob by design.
160160
fn is_prelude_import(segments: &[PathSegment<'_>]) -> bool {
161-
segments.iter().last().map_or(false, |ps| ps.ident.as_str() == "prelude")
161+
segments
162+
.iter()
163+
.last()
164+
.map_or(false, |ps| ps.ident.as_str() == "prelude")
162165
}
163166

164167
// Allow "super::*" imports.
165168
// This is intended primarily to ease the process of writing unit tests.
166169
fn is_super_only_import_in_test(segments: &[PathSegment<'_>]) -> bool {
167-
segments.iter().len() == 1 &&
168-
segments.first().map_or(false, |ps| ps.ident.as_str() == "super")
170+
segments.iter().len() == 1 && segments.first().map_or(false, |ps| ps.ident.as_str() == "super")
169171
}

0 commit comments

Comments
 (0)