From 28b7e0924651fe126d276843e20e6ba62eabff57 Mon Sep 17 00:00:00 2001 From: Lee Olayvar Date: Sat, 29 Apr 2023 10:38:34 -0700 Subject: [PATCH] feat: tweak container store bounds --- fixity_store/src/container_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixity_store/src/container_store.rs b/fixity_store/src/container_store.rs index 2fffc05..5eca387 100644 --- a/fixity_store/src/container_store.rs +++ b/fixity_store/src/container_store.rs @@ -10,7 +10,7 @@ use crate::{ use async_trait::async_trait; #[async_trait] -pub trait ContainerStoreExt { +pub trait ContainerStoreExt: ContentStore { fn new_container(&self) -> WithStore; async fn open(&self, cid: &Cid) -> Result, StoreError>; } @@ -55,7 +55,7 @@ impl DerefMut for WithStore { } /// 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;