Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
-rw-r--r--crates/hir/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 933dd6af1d..883f1aa26e 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -2290,7 +2290,7 @@ impl Function {
.inputs()
.iter()
.enumerate()
- .map(|(idx, ty)| {
+ .map(|(idx, &ty)| {
let ty = Type { env: environment, ty };
Param { func: Callee::Def(CallableDefId::FunctionId(self.id)), ty, idx }
})
@@ -2317,7 +2317,7 @@ impl Function {
.iter()
.enumerate()
.skip(skip)
- .map(|(idx, ty)| {
+ .map(|(idx, &ty)| {
let ty = Type { env: environment, ty };
Param { func: Callee::Def(CallableDefId::FunctionId(self.id)), ty, idx }
})
@@ -2341,7 +2341,7 @@ impl Function {
.iter()
.enumerate()
.skip(skip)
- .map(|(idx, ty)| {
+ .map(|(idx, &ty)| {
let ty = Type { env: environment, ty };
Param { func: Callee::Def(CallableDefId::FunctionId(self.id)), ty, idx }
})