From 78116fdf8f691135e789e7a4a2928883803cd261 Mon Sep 17 00:00:00 2001 From: Angelo Date: Mon, 5 Feb 2024 10:08:00 +0000 Subject: [PATCH] make the AggregateManager deref blanket implementation work for all smart pointers --- src/store/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/mod.rs b/src/store/mod.rs index 9f2845ac..9b38c6dc 100644 --- a/src/store/mod.rs +++ b/src/store/mod.rs @@ -72,13 +72,14 @@ pub trait EventStore { /// `dyn` [`EventStore`]. This is particularly useful when there's the need in your codebase to have /// a generic [`EventStore`]. #[async_trait] -impl EventStore for T +impl EventStore for T where A: crate::Aggregate, A::Event: Send + Sync, A::State: Send, E: std::error::Error, - T: Deref + Sync> + Sync, + S: EventStore + ?Sized, + T: Deref + Sync, for<'a> A::Event: 'a, { type Aggregate = A;