style: reformat code and cleanup whitespace

Reformat code for improved readability and remove unnecessary whitespace.

Co-Authored-By: fiddlerwoaroof/git-smart-commit (gemma-4-26B-A4B-it-UD-Q5_K_XL.gguf)
This commit is contained in:
Edward Langley
2026-04-15 23:42:44 -07:00
parent a900f147b5
commit 4e37e12f9a
6 changed files with 21 additions and 24 deletions

View File

@ -915,7 +915,10 @@ mod tests {
fn formula_cell_renders_computed_value() {
let mut m = Workbook::new("Test");
m.add_category("Region").unwrap(); // → Column
m.model.category_mut("_Measure").unwrap().add_item("Revenue");
m.model
.category_mut("_Measure")
.unwrap()
.add_item("Revenue");
m.model.category_mut("_Measure").unwrap().add_item("Cost");
// Profit is a formula target — dynamically included in _Measure
m.model.category_mut("Region").unwrap().add_item("East");
@ -927,7 +930,8 @@ mod tests {
coord(&[("_Measure", "Cost"), ("Region", "East")]),
CellValue::Number(600.0),
);
m.model.add_formula(parse_formula("Profit = Revenue - Cost", "_Measure").unwrap());
m.model
.add_formula(parse_formula("Profit = Revenue - Cost", "_Measure").unwrap());
m.active_view_mut()
.set_axis("_Index", crate::view::Axis::None);
m.active_view_mut()