From cb578fc9028a43e3002b45bd077513763e82c038 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 21 Mar 2023 12:38:48 +0100 Subject: [PATCH] Inline redundant variable --- crates/fj-kernel/src/services/objects.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fj-kernel/src/services/objects.rs b/crates/fj-kernel/src/services/objects.rs index bd8c6d0266..fb919d04f6 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) {