Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/walk.rs')
| -rw-r--r-- | crates/hir_ty/src/walk.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir_ty/src/walk.rs b/crates/hir_ty/src/walk.rs index 9cacc521d4..c476894552 100644 --- a/crates/hir_ty/src/walk.rs +++ b/crates/hir_ty/src/walk.rs @@ -16,14 +16,14 @@ pub trait TypeWalk { impl TypeWalk for Ty { fn walk(&self, f: &mut impl FnMut(&Ty)) { - match self.kind(&Interner) { + match self.kind(Interner) { TyKind::Alias(AliasTy::Projection(p_ty)) => { - for t in p_ty.substitution.iter(&Interner) { + for t in p_ty.substitution.iter(Interner) { t.walk(f); } } TyKind::Alias(AliasTy::Opaque(o_ty)) => { - for t in o_ty.substitution.iter(&Interner) { + for t in o_ty.substitution.iter(Interner) { t.walk(f); } } @@ -94,7 +94,7 @@ impl TypeWalk for GenericArg { impl TypeWalk for Substitution { fn walk(&self, f: &mut impl FnMut(&Ty)) { - for t in self.iter(&Interner) { + for t in self.iter(Interner) { t.walk(f); } } |