From c3348e4b335443c17586a8b7491ba893cfde76a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Cin=C3=A0?= Date: Tue, 14 May 2024 09:28:37 +0200 Subject: [PATCH] hash-db no send-sync (#214) --- hash-db/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;