about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYoung-Flash <dongyang@apache.org>2024-02-23 21:18:24 +0800
committerYoung-Flash <dongyang@apache.org>2024-02-23 21:18:24 +0800
commitb132190a9cb52435aee4f0e8c44941da31531b74 (patch)
treee98be28b4b3fdb0cb94a5f9e726979d2941e0823
parent0978d165f32c637921498baaf9a9d3d9a597be5d (diff)
downloadrust-b132190a9cb52435aee4f0e8c44941da31531b74.tar.gz
rust-b132190a9cb52435aee4f0e8c44941da31531b74.zip
make clippy happy
-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 612deb7e88f..fe5924ea793 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);
         }
     }