diff --git a/src/ui/effect.rs b/src/ui/effect.rs index 9de1396..01ef0dd 100644 --- a/src/ui/effect.rs +++ b/src/ui/effect.rs @@ -85,7 +85,8 @@ pub struct RemoveFormula { } impl Effect for RemoveFormula { fn apply(&self, app: &mut App) { - app.model.remove_formula(&self.target, &self.target_category); + app.model + .remove_formula(&self.target, &self.target_category); } } @@ -122,7 +123,9 @@ pub struct SetAxis { } impl Effect for SetAxis { fn apply(&self, app: &mut App) { - app.model.active_view_mut().set_axis(&self.category, self.axis); + app.model + .active_view_mut() + .set_axis(&self.category, self.axis); } } @@ -278,14 +281,6 @@ impl Effect for SetSearchMode { } } -#[derive(Debug)] -pub struct SetPendingKey(pub Option); -impl Effect for SetPendingKey { - fn apply(&self, app: &mut App) { - app.pending_key = self.0; - } -} - // ── Side effects ───────────────────────────────────────────────────────────── #[derive(Debug)]