Skip to content

Commit 5acc299

Browse files
committed
Really mini minor irrelevant change for formatting
1 parent 5491241 commit 5acc299

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/wildcard_imports.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ impl LateLintPass<'_> for WildcardImports {
127127
.display(rustc_span::FileNameDisplayPreference::Local)
128128
.to_string();
129129

130-
if filename.ends_with("test.rs") || filename.ends_with("tests.rs") {
131-
self.ignore = true;
132-
}
130+
self.ignore = filename.ends_with("test.rs") || filename.ends_with("tests.rs");
133131
}
134132

135133
fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {

0 commit comments

Comments
 (0)