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.
dylint
1 parent c2436d9 commit 965a358Copy full SHA for 965a358
clippy_lints/src/use_crate_prefix_for_self_imports.rs
@@ -71,7 +71,6 @@ impl<'a, 'tcx> LateLintPass<'tcx> for UseCratePrefixForSelfImports<'a, 'tcx> {
71
};
72
// only check `main.rs` and `lib.rs`
73
if !(file_name == "main.rs" || file_name == "lib.rs") {
74
- self.use_block.clear();
75
return;
76
}
77
0 commit comments