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

Commit

Permalink
Fix 'PartialOrd' implementation for 'PruneCandidate'
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <[email protected]>
  • Loading branch information
suchapalaver committed Oct 12, 2023
1 parent 9ccb01f commit e44e4db
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 e44e4db

Please sign in to comment.