Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Oct 21, 2024
1 parent 5de5e5b commit d85fb1f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions anchor/qbft/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ struct TestQBFTCommitteeBuilder {

impl Default for TestQBFTCommitteeBuilder {
fn default() -> Self {
let mut config = Config::default();
// Set a default committee size of 5.
config.committee_size = 5;
// Populate the committee members
config.committee_members = (0..5).map(OperatorId::from).collect::<HashSet<_>>();
let config = Config::<DefaultLeaderFunction> {
// Set a default committee size of 5.
committee_size: 5,
// Populate the committee members
committee_members: (0..5).map(OperatorId::from).collect::<HashSet<_>>(),
..Default::default()
};

TestQBFTCommitteeBuilder {
config,
Expand Down

0 comments on commit d85fb1f

Please sign in to comment.