Skip to content

Commit d74780d

Browse files
committed
fix after toolchain update
1 parent 159e31a commit d74780d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/use_crate_prefix_for_self_imports.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ impl<'tcx> UseCratePrefixForSelfImports<'_, 'tcx> {
127127

128128
fn insert_item(&mut self, item: &Item<'tcx>) {
129129
match item.kind {
130-
ItemKind::Mod(_) => {
130+
ItemKind::Mod(ident, _) => {
131131
self.spans.push(item.span);
132-
self.mod_names.insert(item.ident.name);
132+
self.mod_names.insert(ident.name);
133133
},
134134
ItemKind::Use(use_tree, _) => {
135135
self.spans.push(item.span);

0 commit comments

Comments
 (0)