This commit is contained in:
ktims committed 2024-12-13 02:17:57 -08:00
1 parent 35637cece1
commit 1a6d37f4f3
5 files changed
+8 -6

No files matched your search

+1 -4
View File
@@ -65,10 +65,7 @@ impl OrderingRules {
}
}
fn is_sorted(&self, a: u64, b: u64) -> bool {
match self.pairs.get(&(a, b)) {
Some(Ordering::Less) | Some(Ordering::Equal) => true,
_ => false,
}
matches!(self.pairs.get(&(a, b)), Some(Ordering::Less) | Some(Ordering::Equal))
}
}