diff --git a/hash-db/src/lib.rs b/hash-db/src/lib.rs index 4825aada..2ffd7d82 100644 --- a/hash-db/src/lib.rs +++ b/hash-db/src/lib.rs @@ -76,7 +76,7 @@ pub trait Hasher: Sync + Send { /// Trait modelling a plain datastore whose key is a fixed type. /// The caller should ensure that a key only corresponds to /// one value. -pub trait PlainDB: Send + Sync + AsPlainDB { +pub trait PlainDB: AsPlainDB { /// Look up a given hash into the bytes that hash to it, returning None if the /// hash is not known. fn get(&self, key: &K) -> Option; @@ -125,7 +125,7 @@ impl<'a, K, V> PlainDBRef for &'a mut dyn PlainDB { } /// Trait modelling datastore keyed by a hash defined by the `Hasher`. -pub trait HashDB: Send + Sync + AsHashDB { +pub trait HashDB: AsHashDB { /// Look up a given hash into the bytes that hash to it, returning None if the /// hash is not known. fn get(&self, key: &H::Out, prefix: Prefix) -> Option;