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)
This commit is contained in:
Edward Langley
2026-04-04 09:31:49 -07:00
parent 387190c9f7
commit 67fca18200

View File

@ -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<char>);
impl Effect for SetPendingKey {
fn apply(&self, app: &mut App) {
app.pending_key = self.0;
}
}
// ── Side effects ─────────────────────────────────────────────────────────────
#[derive(Debug)]