Skip to content

Commit

Permalink
fix: broken fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse committed Aug 16, 2024
1 parent 67113e4 commit ba6dbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/fuzz_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
}
Expand Down

0 comments on commit ba6dbdf

Please sign in to comment.