Skip to content

Commit

Permalink
making clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminsavage committed Nov 7, 2023
1 parent 8e8b0e4 commit 50ef10e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/protocol/ipa_prf/prf_sharding/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,11 @@ where
while let Some(row) = s.next().await {
if row.prf_of_match_key == last_row_prf {
current_chunk.push(row);
} else if current_chunk.len() > 1 {
return Some((current_chunk, Some((s, row))));
} else {
if current_chunk.len() > 1 {
return Some((current_chunk, Some((s, row))));
} else {
last_row_prf = row.prf_of_match_key;
current_chunk = vec![row];
}
last_row_prf = row.prf_of_match_key;
current_chunk = vec![row];
}
}
Some((current_chunk, None))
Expand Down

0 comments on commit 50ef10e

Please sign in to comment.