summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-10-12 15:40:49 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-12 15:40:49 -0400
commit09e55694247f1a9494374e99574cc65bace706e7 (patch)
treef60ddf5716a04721934fcc841789920116c90b8d /src/util.rs
parent845dc470e959893422b6117f934e3c9cae3f4bd6 (diff)
downloadacap-09e55694247f1a9494374e99574cc65bace706e7.tar.xz
Fix some clippy lints
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")