Skip to content

Commit

Permalink
Also have flag disable macro check
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAwesome committed May 9, 2020
1 parent ad92486 commit a42a2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/wildcard_imports.rs
Expand Up @@ -102,7 +102,7 @@ impl LateLintPass<'_, '_> for WildcardImports {
self.test_modules_deep += 1;
}
if_chain! {
if !in_macro(item.span);
if self.warn_on_all || !in_macro(item.span);
if let ItemKind::Use(use_path, UseKind::Glob) = &item.kind;
if self.warn_on_all || !self.check_exceptions(use_path.segments);
let used_imports = cx.tcx.names_imported_by_glob_use(item.hir_id.owner);
Expand Down

0 comments on commit a42a2bd

Please sign in to comment.