chore: make clippy happy (#7045)

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
This commit is contained in:
Delweng
2024-03-08 20:54:40 +08:00
committed by GitHub
parent 43bb4ccbba
commit ed0dce85e0
2 changed files with 4 additions and 5 deletions

View File

@@ -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() {}
}

View File

@@ -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")]