Skip to content

Commit

Permalink
Fixes rust-lang#9677 - Lint against mod lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Oct 25, 2022
1 parent 003b974 commit 4604e61
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_lints/src/mod_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ impl_lint_pass!(ModLib => [MOD_LIB]);
impl<'tcx> LateLintPass<'tcx> for ModLib {
fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {
if let ItemKind::Mod(_) = item.kind {
// println!("MOO Found a Mod: {:#?}", item.ident);
if item.ident.name == sym::lib {
span_lint_and_help(
cx,
Expand Down

0 comments on commit 4604e61

Please sign in to comment.