From 1a5dcf859503763b3f80bca0426272473043cb5b Mon Sep 17 00:00:00 2001 From: Marcin Date: Mon, 16 Dec 2024 12:11:42 +0100 Subject: [PATCH] fmt --- consensus/src/dag/reconstruction/mod.rs | 2 +- consensus/src/extension/election.rs | 2 +- consensus/src/testing/dag.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/src/dag/reconstruction/mod.rs b/consensus/src/dag/reconstruction/mod.rs index a069029b..120853d0 100644 --- a/consensus/src/dag/reconstruction/mod.rs +++ b/consensus/src/dag/reconstruction/mod.rs @@ -93,7 +93,7 @@ impl UnitWithParents for ReconstructedUnit { .filter_map(|(hash, parent_round)| match self.unit.coord().round() { // round 0 units cannot have non-empty parents 0 => None, - + unit_round => { if unit_round - 1 == *parent_round { Some(hash) diff --git a/consensus/src/extension/election.rs b/consensus/src/extension/election.rs index b69d7bc9..e60ff8d8 100644 --- a/consensus/src/extension/election.rs +++ b/consensus/src/extension/election.rs @@ -111,7 +111,7 @@ impl CandidateElection { _ => { let threshold = voter.node_count().consensus_threshold(); self.vote_from_parents(direct_parents, threshold, relative_round)? - }, + } }; self.votes.insert(voter.hash(), vote); Ok(()) diff --git a/consensus/src/testing/dag.rs b/consensus/src/testing/dag.rs index 5d894380..ce8ae023 100644 --- a/consensus/src/testing/dag.rs +++ b/consensus/src/testing/dag.rs @@ -147,7 +147,7 @@ impl DagFeeder { .parent_hashes() .into_iter() .collect(); - + assert_eq!(parents.into_iter().collect::>(), expected_hashes); self.result.push(unit.clone()); self.store.insert(unit);