Reuse 'kind' parameter.
This commit is contained in:
parent
719890502e
commit
42255d93ef
1 changed files with 1 additions and 1 deletions
|
@ -4662,7 +4662,7 @@ impl<'a> Resolver<'a> {
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue