Skip to content

Commit

Permalink
fix: use correct HashMap import (#2148)
Browse files Browse the repository at this point in the history
* fix: use correct HashMap import

* fix
  • Loading branch information
klkvr authored Mar 5, 2025
1 parent dd8c1c0 commit 934b774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions crates/database/src/in_memory_db.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use core::convert::Infallible;
use database_interface::{Database, DatabaseCommit, DatabaseRef, EmptyDB};
use primitives::{
address,
hash_map::{Entry, HashMap},
Address, Log, B256, KECCAK_EMPTY, U256,
};
use primitives::{address, hash_map::Entry, Address, HashMap, Log, B256, KECCAK_EMPTY, U256};
use state::{Account, AccountInfo, Bytecode};
use std::vec::Vec;

Expand Down Expand Up @@ -32,7 +28,7 @@ pub struct Cache {

impl Default for Cache {
fn default() -> Self {
let mut contracts = HashMap::new();
let mut contracts = HashMap::default();
contracts.insert(KECCAK_EMPTY, Bytecode::default());
contracts.insert(B256::ZERO, Bytecode::default());

Expand Down
2 changes: 1 addition & 1 deletion crates/optimism/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use revm::{
Frame, FrameResult, Handler, MainnetHandler,
},
interpreter::{interpreter::EthInterpreter, FrameInput, Gas},
primitives::{hash_map::HashMap, U256},
primitives::{HashMap, U256},
specification::hardfork::SpecId,
state::{Account, EvmState},
Database,
Expand Down

0 comments on commit 934b774

Please # to comment.