summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 0979782..6a969de 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -19,6 +19,7 @@ impl<T> From<T> for Ordered<T> {
}
}
+#[allow(clippy::derive_ord_xor_partial_ord)]
impl<T: PartialOrd> Ord for Ordered<T> {
fn cmp(&self, other: &Self) -> Ordering {
self.partial_cmp(other).expect("Comparison between unordered items")