diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 635185fe225..d351802266e 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -4662,7 +4662,7 @@ fn get_traits_in_module_containing_item(&mut self, fn find_transitive_imports(&mut self, mut kind: &NameBindingKind<'_>, trait_name: &Ident) -> SmallVec<[NodeId; 1]> { let mut import_ids = smallvec![]; - while let NameBindingKind::Import { directive, binding, .. } = *kind { + while let NameBindingKind::Import { directive, binding, .. } = kind { self.maybe_unused_trait_imports.insert(directive.id); self.add_to_glob_map(&directive, *trait_name); import_ids.push(directive.id);