From ed0dce85e0494edeebc50127c3ea058b8a1ef37a Mon Sep 17 00:00:00 2001 From: Delweng Date: Fri, 8 Mar 2024 20:54:40 +0800 Subject: [PATCH] chore: make clippy happy (#7045) Signed-off-by: jsvisa Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com> --- bin/reth/src/lib.rs | 7 +++---- crates/primitives/src/revm/env.rs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/reth/src/lib.rs b/bin/reth/src/lib.rs index 51522ed1e4..121d6075b5 100644 --- a/bin/reth/src/lib.rs +++ b/bin/reth/src/lib.rs @@ -153,12 +153,11 @@ pub mod rpc { #[cfg(all(unix, any(target_env = "gnu", target_os = "macos")))] pub mod sigsegv_handler; +/// Signal handler to extract a backtrace from stack overflow. +/// +/// This is a no-op because this platform doesn't support our signal handler's requirements. #[cfg(not(all(unix, any(target_env = "gnu", target_os = "macos"))))] pub mod sigsegv_handler { - //! Signal handler to extract a backtrace from stack overflow. - //! - //! This is a no-op because this platform doesn't support our signal handler's requirements. - /// No-op function. pub fn install() {} } diff --git a/crates/primitives/src/revm/env.rs b/crates/primitives/src/revm/env.rs index 14e7cc1083..edfc07f80a 100644 --- a/crates/primitives/src/revm/env.rs +++ b/crates/primitives/src/revm/env.rs @@ -285,7 +285,7 @@ where (l.address, l.storage_keys.iter().map(|k| U256::from_be_bytes(k.0)).collect()) }) .collect(); - tx_env.blob_hashes = tx.blob_versioned_hashes.clone(); + tx_env.blob_hashes.clone_from(&tx.blob_versioned_hashes); tx_env.max_fee_per_blob_gas = Some(U256::from(tx.max_fee_per_blob_gas)); } #[cfg(feature = "optimism")]