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:
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user