From d0727cfcb10055c95c01faa9c11277d13000d15b Mon Sep 17 00:00:00 2001 From: kylezs Date: Wed, 30 Oct 2024 11:39:18 +0100 Subject: [PATCH] chore: clippy --- .../cf-elections/src/electoral_systems/monotonic_change.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)| {