about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/call.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2024-09-12 20:37:17 +1000
committerGitHub <noreply@github.com>2024-09-12 20:37:17 +1000
commit57020e0f8c30feae31b321325a34d6ebe6679cce (patch)
treee6d230fc3e4fb33be18e5fda9a501765bb43f158 /compiler/rustc_const_eval/src/interpret/call.rs
parent3ba12756d3bebefc18b0f623dece8898adcea6c3 (diff)
parent6d064295c8fb7413cb0500289f922f8d7feb38dc (diff)
downloadrust-57020e0f8c30feae31b321325a34d6ebe6679cce.tar.gz
rust-57020e0f8c30feae31b321325a34d6ebe6679cce.zip
Rollup merge of #130250 - compiler-errors:useless-conversion, r=jieyouxu
Fix `clippy::useless_conversion`

Self-explanatory. Probably the last clippy change I'll actually put up since this is the only other one I've actually seen in the wild.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/call.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/call.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/call.rs b/compiler/rustc_const_eval/src/interpret/call.rs
index 419d412b063..0f2b22f035b 100644
--- a/compiler/rustc_const_eval/src/interpret/call.rs
+++ b/compiler/rustc_const_eval/src/interpret/call.rs
@@ -823,7 +823,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
             (Abi::Rust, fn_abi),
             &[FnArg::Copy(arg.into())],
             false,
-            &ret.into(),
+            &ret,
             Some(target),
             unwind,
         )