FIX: Make Clippy happy

Automatic fixes
This commit is contained in:
Nicolás Hatcher
2025-01-18 20:04:21 +01:00
committed by Nicolás Hatcher Andrés
parent 263bab2cf9
commit 1b7389fd23
3 changed files with 4 additions and 16 deletions

View File

@@ -188,10 +188,7 @@ impl Model {
node: &Node,
cell: CellReferenceIndex,
) -> Result<(f64, f64, Suffix), CalcResult> {
let value = match self.get_string(node, cell) {
Ok(s) => s,
Err(s) => return Err(s),
};
let value = self.get_string(node, cell)?;
if value.is_empty() {
return Ok((0.0, 0.0, Suffix::I));
}