Skip to content

Commit

Permalink
Kimchi: apply clippy suggestions to use flatten()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonichon committed Jul 21, 2023
1 parent d9bedac commit aa5abdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kimchi/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,11 +579,10 @@ where
}

// Lookup evaluations
for sorted in lookup_sorted {
if let Some(sorted) = sorted {
check_eval_len(sorted)?;
}
for sorted in lookup_sorted.iter().flatten() {
check_eval_len(sorted)?
}

if let Some(lookup_aggregation) = lookup_aggregation {
check_eval_len(lookup_aggregation)?;
}
Expand Down

0 comments on commit aa5abdc

Please sign in to comment.