From 1d9b29ff57d1dc9c4312ecc491cd6bd53ae29cf2 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 22 Oct 2026 02:45:22 +0000 Subject: [PATCH] Integration: cargo fmt --- crates/engine/src/cmd/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/engine/src/cmd/mod.rs b/crates/engine/src/cmd/mod.rs index 633be3c9f..a9be7e2c0 100644 --- a/crates/engine/src/cmd/mod.rs +++ b/crates/engine/src/cmd/mod.rs @@ -533,11 +533,7 @@ pub fn auto_row_height(wb: &mut Workbook, si: usize, row: u32) { if st.align.wrap { let text = crate::display::cell_text(wb, sh, CellRef::new(row, c)); let w = sh.col_width(c).max(1.0) - 6.0; - lines = text - .lines() - .map(|l| wrapped_line_count(l, w.max(1.0), size, st.font.bold)) - .sum::() - .max(1.0); + lines = text.lines().map(|l| wrapped_line_count(l, w.max(1.0), size, st.font.bold)).sum::().max(1.0); } } else if st.font.size <= gridcraft_model::DEFAULT_FONT_SIZE { continue;