From 67fca1820096f31f65da5775ea70c6ac5b582a71 Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Sat, 4 Apr 2026 09:31:49 -0700 Subject: [PATCH] tidy method calls - Reformatted method calls in RemoveFormula and SetAxis for consistency. - Minor formatting changes to improve readability. Co-Authored-By: fiddlerwoaroof/git-smart-commit (gpt-oss:20b) --- src/ui/effect.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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)]