Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Tuples are lexicographically ordered
Lorenz Leutgeb committed 9 months ago
commit bc50f5ab7bcf00800ab627c824bbbd3b9e1d6ba6
parent f33c46dd82fb153dba6d679b7a3b84865bd9de73
1 file changed +1 -4
modified crates/radicle/src/git/canonical/quorum.rs
@@ -98,10 +98,7 @@ impl PartialOrd for MergeBaseKey {

impl Ord for MergeBaseKey {
    fn cmp(&self, other: &Self) -> Ordering {
-
        match self.a.cmp(&other.a) {
-
            Ordering::Equal => self.b.cmp(&other.b),
-
            o => o,
-
        }
+
        (self.a, self.b).cmp(&(other.a, other.b))
    }
}