We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5491241 commit 5acc299Copy full SHA for 5acc299
clippy_lints/src/wildcard_imports.rs
@@ -127,9 +127,7 @@ impl LateLintPass<'_> for WildcardImports {
127
.display(rustc_span::FileNameDisplayPreference::Local)
128
.to_string();
129
130
- if filename.ends_with("test.rs") || filename.ends_with("tests.rs") {
131
- self.ignore = true;
132
- }
+ self.ignore = filename.ends_with("test.rs") || filename.ends_with("tests.rs");
133
}
134
135
fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {
0 commit comments