Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix 'PruneCandidate' 'PartialOrd' impl to return result of 'self.cmp(…
Browse files Browse the repository at this point in the history
…other)', not its reverse

Signed-off-by: Joseph Livesey <[email protected]>
  • Loading branch information
suchapalaver committed Oct 25, 2023
1 parent 9ccb01f commit 6a5827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/state/state_pruning_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Ord for PruneCandidate {

impl PartialOrd for PruneCandidate {
fn partial_cmp(&self, other: &PruneCandidate) -> Option<Ordering> {
Some(Ordering::reverse(self.0.cmp(&other.0)))
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 6a5827b

Please sign in to comment.