From 5acc2993e74506780e0a20331f58e78e125aad92 Mon Sep 17 00:00:00 2001 From: blyxyas Date: Mon, 3 Apr 2023 14:16:46 +0200 Subject: [PATCH] Really mini minor irrelevant change for formatting --- clippy_lints/src/wildcard_imports.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clippy_lints/src/wildcard_imports.rs b/clippy_lints/src/wildcard_imports.rs index f062cafdd4f..53ab9e94631 100644 --- a/clippy_lints/src/wildcard_imports.rs +++ b/clippy_lints/src/wildcard_imports.rs @@ -127,9 +127,7 @@ impl LateLintPass<'_> for WildcardImports { .display(rustc_span::FileNameDisplayPreference::Local) .to_string(); - if filename.ends_with("test.rs") || filename.ends_with("tests.rs") { - self.ignore = true; - } + self.ignore = filename.ends_with("test.rs") || filename.ends_with("tests.rs"); } fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {