diff --git a/crates/fj-kernel/src/services/objects.rs b/crates/fj-kernel/src/services/objects.rs index bd8c6d026..fb919d04f 100644 --- a/crates/fj-kernel/src/services/objects.rs +++ b/crates/fj-kernel/src/services/objects.rs @@ -11,8 +11,7 @@ impl State for Objects { fn decide(&self, command: Self::Command, events: &mut Vec) { let Operation::InsertObject { object } = command; - let event = InsertObject { object }; - events.push(event); + events.push(InsertObject { object }); } fn evolve(&mut self, event: &Self::Event) {