Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Jan 2, 2025
1 parent b16b94e commit 99dd80f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion consensus/src/extension/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ impl<U: UnitWithParents> CandidateElection<U> {
return Ok(());
}
let relative_round = voter.round() - self.round;
let direct_parents = voter.direct_parents().cloned().collect();
let vote = match relative_round {
0 => unreachable!("just checked that voter and election rounds are not equal"),
// Direct descendands vote for, all other units of that round against.
Expand Down

0 comments on commit 99dd80f

Please sign in to comment.