Skip to content

Commit

Permalink
chore: clippy (bluealloy#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Nov 23, 2023
1 parent 9e8b039 commit 91aa106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/revm/src/db/states/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions crates/revm/src/evm_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 91aa106

Please sign in to comment.