Unnamed repository; edit this file 'description' to name the repository.
make clippy happy
Young-Flash 2024-02-23
parent 0978d16 · commit b132190
-rw-r--r--crates/hir-ty/src/diagnostics/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/diagnostics/expr.rs b/crates/hir-ty/src/diagnostics/expr.rs
index 612deb7e88..fe5924ea79 100644
--- a/crates/hir-ty/src/diagnostics/expr.rs
+++ b/crates/hir-ty/src/diagnostics/expr.rs
@@ -160,7 +160,7 @@ impl ExprValidator {
});
}
- let receiver_ty = self.infer[receiver.clone()].strip_references().clone();
+ let receiver_ty = self.infer[*receiver].strip_references().clone();
checker.prev_receiver_ty = Some(receiver_ty);
}
}