Skip to content

Commit

Permalink
feat: tweak container store bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
leeola committed Apr 29, 2023
1 parent d7395d2 commit 28b7e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixity_store/src/container_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
use async_trait::async_trait;

#[async_trait]
pub trait ContainerStoreExt {
pub trait ContainerStoreExt: ContentStore {
fn new_container<T: ContainerV4>(&self) -> WithStore<T, &Self>;
async fn open<T: ContainerV4>(&self, cid: &Cid) -> Result<WithStore<T, &Self>, StoreError>;
}
Expand Down Expand Up @@ -55,7 +55,7 @@ impl<T, S> DerefMut for WithStore<T, S> {
}
/// A trait to wrap a [`Container`] and pass in an associated store to container methods..
#[async_trait]
pub trait ContainerWithStore: Sized + Send + TypeDescription {
pub trait ContainerWithStore: Send + TypeDescription {
type Container: ContainerV4;
fn deser_type_desc() -> ValueDesc;
async fn save(&mut self) -> Result<Cid, StoreError>;
Expand Down

0 comments on commit 28b7e09

Please sign in to comment.