diff --git a/src/format.rs b/src/format.rs index cd9fd3b0..40ccb34a 100644 --- a/src/format.rs +++ b/src/format.rs @@ -372,6 +372,11 @@ impl AuditEntry { /// Implement PartialOrd manually because the order we want for sorting is /// different than the order we want for serialization. +/// +/// Strictly speaking Ord and PartialOrd implementations are supposed to agree, +/// and clippy recently started complaining about this. We should consider whether +/// there's another solution to this problem. +#[allow(clippy::non_canonical_partial_ord_impl)] impl cmp::PartialOrd for AuditEntry { fn partial_cmp<'a>(&'a self, other: &'a AuditEntry) -> Option { let tuple = |x: &'a AuditEntry| (&x.kind, &x.criteria, &x.who, &x.notes);