diff options
| author | Young-Flash <dongyang@apache.org> | 2024-02-23 21:18:24 +0800 |
|---|---|---|
| committer | Young-Flash <dongyang@apache.org> | 2024-02-23 21:18:24 +0800 |
| commit | b132190a9cb52435aee4f0e8c44941da31531b74 (patch) | |
| tree | e98be28b4b3fdb0cb94a5f9e726979d2941e0823 | |
| parent | 0978d165f32c637921498baaf9a9d3d9a597be5d (diff) | |
| download | rust-b132190a9cb52435aee4f0e8c44941da31531b74.tar.gz rust-b132190a9cb52435aee4f0e8c44941da31531b74.zip | |
make clippy happy
| -rw-r--r-- | crates/hir-ty/src/diagnostics/expr.rs | 2 |
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); } } |
