Fix clippy lint (#177)

This commit is contained in:
Gian Hancock
2024-12-11 21:45:24 +11:00
committed by GitHub
parent eee40c1b9a
commit 2f660f85a7

View File

@@ -342,7 +342,7 @@ impl UserModel {
old_value: Box::new(old_value),
}];
let line_count = value.split("\n").count();
let line_count = value.split('\n').count();
let row_height = self.model.get_row_height(sheet, row)?;
let cell_height = (line_count as f64) * DEFAULT_ROW_HEIGHT;
if cell_height > row_height {