Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Feb 6, 2025
1 parent 29f1185 commit 25da4f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions consensus/src/extension/extender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ mod test {
assert!(batch.len() == threshold.0 || batch.len() == n_members.0);
if batch.len() == n_members.0 {
// the batch that should have ancient unit
assert!(batch
.iter()
.find(|&unit| unit.parents().count() == 0)
.is_some());
assert!(batch.iter().any(|unit| unit.parents().count() == 0));
}
}
}
Expand Down

0 comments on commit 25da4f8

Please sign in to comment.