No need to take ImplTraitContext by ref

This commit is contained in:
Michael Goulet
2024-02-07 19:27:44 +00:00
parent d4f6f9ee6a
commit cd21b1d036
8 changed files with 90 additions and 92 deletions

View File

@@ -85,7 +85,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
let ty = l
.ty
.as_ref()
.map(|t| self.lower_ty(t, &ImplTraitContext::Disallowed(ImplTraitPosition::Variable)));
.map(|t| self.lower_ty(t, ImplTraitContext::Disallowed(ImplTraitPosition::Variable)));
let init = l.kind.init().map(|init| self.lower_expr(init));
let hir_id = self.lower_node_id(l.id);
let pat = self.lower_pat(&l.pat);