From d9004c1e01fa83426062091df686df55ba2c0218 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:35:28 +0100 Subject: [PATCH] chore: clippy --- crates/revm/src/db/states/state.rs | 6 +++--- crates/revm/src/evm_impl.rs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/revm/src/db/states/state.rs b/crates/revm/src/db/states/state.rs index b44bf3a496..37861ac753 100644 --- a/crates/revm/src/db/states/state.rs +++ b/crates/revm/src/db/states/state.rs @@ -315,9 +315,9 @@ mod tests { let test_number = BLOCK_HASH_HISTORY as u64 + 2; - let block1_hash = keccak256(&U256::from(1).to_be_bytes::<{ U256::BYTES }>()); - let block2_hash = keccak256(&U256::from(2).to_be_bytes::<{ U256::BYTES }>()); - let block_test_hash = keccak256(&U256::from(test_number).to_be_bytes::<{ U256::BYTES }>()); + let block1_hash = keccak256(U256::from(1).to_be_bytes::<{ U256::BYTES }>()); + let block2_hash = keccak256(U256::from(2).to_be_bytes::<{ U256::BYTES }>()); + let block_test_hash = keccak256(U256::from(test_number).to_be_bytes::<{ U256::BYTES }>()); assert_eq!( state.block_hashes, diff --git a/crates/revm/src/evm_impl.rs b/crates/revm/src/evm_impl.rs index 99e509e32d..52adb54057 100644 --- a/crates/revm/src/evm_impl.rs +++ b/crates/revm/src/evm_impl.rs @@ -334,8 +334,7 @@ impl<'a, SPEC: Spec + 'static, DB: Database> EVMImpl<'a, SPEC, DB> { { Ok(new_frame) => Some(new_frame), Err(mut result) => { - //println!("Result returned right away: {:#?}", result); - if let Some(inspector) = self.inspector.as_mut() { + if let Some(inspector) = &mut self.inspector { result = inspector.call_end(&mut self.context, result); } curent_stake_frame.interpreter.insert_call_output(