Skip to content

Commit 66b99f2

Browse files
committed
Address clippy::non_canonical_partial_ord_impl
1 parent 87222f0 commit 66b99f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpki-ccadb/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl CertificateMetadata {
241241

242242
impl PartialOrd for CertificateMetadata {
243243
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
244-
Some(self.sha256_fingerprint.cmp(&other.sha256_fingerprint))
244+
Some(self.cmp(other))
245245
}
246246
}
247247

0 commit comments

Comments
 (0)