Skip to content

Commit

Permalink
fix: reth-trie no_std case hashmap (#13497)
Browse files Browse the repository at this point in the history
Co-authored-by: lightsing <[email protected]>
  • Loading branch information
mattsse and lightsing authored Dec 22, 2024
1 parent 2dd0ec3 commit f791f39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 5 additions & 6 deletions crates/trie/db/src/prefix_set.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
use alloy_primitives::{BlockNumber, B256};
use alloy_primitives::{
map::{HashMap, HashSet},
BlockNumber, B256,
};
use core::{marker::PhantomData, ops::RangeInclusive};
use derive_more::Deref;
use reth_db::tables;
use reth_db_api::{
Expand All @@ -12,11 +16,6 @@ use reth_trie::{
prefix_set::{PrefixSetMut, TriePrefixSets},
KeyHasher, Nibbles,
};
use std::{
collections::{HashMap, HashSet},
marker::PhantomData,
ops::RangeInclusive,
};

/// A wrapper around a database transaction that loads prefix sets within a given block range.
#[derive(Debug)]
Expand Down
4 changes: 1 addition & 3 deletions crates/trie/db/src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::collections::hash_map;

use crate::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory};
use alloy_primitives::{keccak256, Address, BlockNumber, B256};
use alloy_primitives::{keccak256, map::hash_map, Address, BlockNumber, B256};
use reth_db::{cursor::DbCursorRO, models::BlockNumberAddress, tables, DatabaseError};
use reth_db_api::transaction::DbTx;
use reth_execution_errors::StorageRootError;
Expand Down

0 comments on commit f791f39

Please sign in to comment.