From ba6dbdf979403103e1105c53b3033eb2c52b1326 Mon Sep 17 00:00:00 2001 From: c Date: Wed, 14 Aug 2024 13:48:05 +0200 Subject: [PATCH] fix: broken fuzzer --- fuzz/fuzz_targets/fuzz_all.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_all.rs b/fuzz/fuzz_targets/fuzz_all.rs index c8b9c3b3..126819ea 100644 --- a/fuzz/fuzz_targets/fuzz_all.rs +++ b/fuzz/fuzz_targets/fuzz_all.rs @@ -16,7 +16,7 @@ fuzz_target!(|data: &[u8]| { Err(_) => return, }; for worksheet in workbook.worksheets() { - if let Some(Ok(range)) = workbook.worksheet_range(&worksheet.0) { + if let Ok(range) = workbook.worksheet_range(&worksheet.0) { let _ = range.get_size().0 * range.get_size().1; range.used_cells().count(); } @@ -33,7 +33,7 @@ fuzz_target!(|data: &[u8]| { } let sheets = workbook.sheet_names().to_owned(); for s in sheets { - if let Some(Ok(formula)) = workbook.worksheet_formula(&s) { + if let Ok(formula) = workbook.worksheet_formula(&s) { formula.rows().flat_map(|r| r.iter().filter(|f| !f.is_empty())).count(); } }