Skip to content

Commit a42a2bd

Browse files
committed
Also have flag disable macro check
1 parent ad92486 commit a42a2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/wildcard_imports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl LateLintPass<'_, '_> for WildcardImports {
102102
self.test_modules_deep += 1;
103103
}
104104
if_chain! {
105-
if !in_macro(item.span);
105+
if self.warn_on_all || !in_macro(item.span);
106106
if let ItemKind::Use(use_path, UseKind::Glob) = &item.kind;
107107
if self.warn_on_all || !self.check_exceptions(use_path.segments);
108108
let used_imports = cx.tcx.names_imported_by_glob_use(item.hir_id.owner);

0 commit comments

Comments
 (0)