diff --git a/crates/fj-kernel/src/services/service.rs b/crates/fj-kernel/src/services/service.rs index 5ce2a50d9..d77d4bd8d 100644 --- a/crates/fj-kernel/src/services/service.rs +++ b/crates/fj-kernel/src/services/service.rs @@ -100,7 +100,10 @@ where } } -impl Subscriber for Service { +impl Subscriber for Service +where + S::Command: Clone, +{ fn handle_event(&mut self, event: &S::Command) { self.execute(event.clone()); } @@ -113,7 +116,7 @@ pub trait State { /// A command that relates to the state /// /// Commands are processed by [`State::decide`]. - type Command: Clone; + type Command; /// An event that captures modifications to this state ///