diff --git a/state-chain/pallets/cf-elections/src/electoral_systems/monotonic_change.rs b/state-chain/pallets/cf-elections/src/electoral_systems/monotonic_change.rs index a0c97230eb..9ea3054981 100644 --- a/state-chain/pallets/cf-elections/src/electoral_systems/monotonic_change.rs +++ b/state-chain/pallets/cf-elections/src/electoral_systems/monotonic_change.rs @@ -167,7 +167,7 @@ impl< monotonic_change_vote.block > previous_block && previous_value != monotonic_change_vote.value }) { - counts.entry(vote.value).or_insert_with(Vec::new).push(vote.block); + counts.entry(vote.value).or_default().push(vote.block); } counts.iter().find_map(|(vote, blocks_height)| {