Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion memory-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
[dependencies]
hash-db = { version = "0.16.0", path = "../hash-db", default-features = false }
hashbrown = "0.15.3"
foldhash = "0.1.5"
foldhash = { version = "0.1.5", default-features = false }

[dev-dependencies]
keccak-hasher = { path = "../test-support/keccak-hasher" }
Expand Down
12 changes: 6 additions & 6 deletions memory-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ where
T: Default + PartialEq<T> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: Send + Sync + KeyFunction<H>,
KF::Key: Borrow<[u8]> + for<'a> From<&'a [u8]>,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn get(&self, key: &H::Out) -> Option<T> {
match self.data.get(key.as_ref()) {
Expand Down Expand Up @@ -472,7 +472,7 @@ where
T: Default + PartialEq<T> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: Send + Sync + KeyFunction<H>,
KF::Key: Borrow<[u8]> + for<'a> From<&'a [u8]>,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn get(&self, key: &H::Out) -> Option<T> {
PlainDB::get(self, key)
Expand All @@ -487,7 +487,7 @@ where
H: KeyHasher,
T: Default + PartialEq<T> + AsRef<[u8]> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: KeyFunction<H> + Send + Sync,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn get(&self, key: &H::Out, prefix: Prefix) -> Option<T> {
if key == &self.hashed_null_node {
Expand Down Expand Up @@ -567,7 +567,7 @@ where
H: KeyHasher,
T: Default + PartialEq<T> + AsRef<[u8]> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: KeyFunction<H> + Send + Sync,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn get(&self, key: &H::Out, prefix: Prefix) -> Option<T> {
HashDB::get(self, key, prefix)
Expand All @@ -583,7 +583,7 @@ where
T: Default + PartialEq<T> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: KeyFunction<H> + Send + Sync,
KF::Key: Borrow<[u8]> + for<'a> From<&'a [u8]>,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn as_plain_db(&self) -> &dyn PlainDB<H::Out, T> {
self
Expand All @@ -598,7 +598,7 @@ where
H: KeyHasher,
T: Default + PartialEq<T> + AsRef<[u8]> + for<'a> From<&'a [u8]> + Clone + Send + Sync,
KF: KeyFunction<H> + Send + Sync,
S: BuildHasher + Default,
S: BuildHasher + Default + Send + Sync,
{
fn as_hash_db(&self) -> &dyn HashDB<H, T> {
self
Expand Down
Loading