This repository was archived by the owner on Feb 1, 2024. It is now read-only.
Commit 7a1647a
committed
Correct 'PartialOrd' implementation for 'PruneCandidate'
The previous implementation used 'Ordering::reverse' incorrectly, potentially leading to incorrect element ordering. The corrected code now properly returns the result of 'self.cmp(other)', aligning with the 'PartialOrd' trait's requirements for element comparisons.
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>1 parent 5454770 commit 7a1647a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments