diff --git a/core/src/es/event.rs b/core/src/es/event.rs index 5695bf5..92bb88d 100644 --- a/core/src/es/event.rs +++ b/core/src/es/event.rs @@ -161,28 +161,25 @@ pub trait Sourcing { fn apply_to(&self, state: &mut S); } -impl Sourcing for Ev -where - S: Sourced, -{ +impl + ?Sized> Sourcing for Ev { fn apply_to(&self, state: &mut S) { state.apply(self); } } -impl<'e, S> Sourced + 'e> for S { +impl<'e, S: ?Sized> Sourced + 'e> for S { fn apply(&mut self, event: &(dyn Sourcing + 'e)) { event.apply_to(self); } } -impl<'e, S> Sourced + Send + 'e> for S { +impl<'e, S: ?Sized> Sourced + Send + 'e> for S { fn apply(&mut self, event: &(dyn Sourcing + Send + 'e)) { event.apply_to(self); } } -impl<'e, S> Sourced + Send + Sync + 'e> for S { +impl<'e, S: ?Sized> Sourced + Send + Sync + 'e> for S { fn apply(&mut self, event: &(dyn Sourcing + Send + Sync + 'e)) { event.apply_to(self); }