From 7e52fe6d828c3c5d6bb30c7e96a0f708a910132f Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Tue, 10 Oct 2023 14:00:16 +0200 Subject: [PATCH] Fix clippy error indicating error in implementation --- openssl/src/bn.rs | 2 +- openssl/src/x509/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs index c75fac1d70..a67d0807aa 100644 --- a/openssl/src/bn.rs +++ b/openssl/src/bn.rs @@ -1229,7 +1229,7 @@ impl Ord for BigNumRef { impl PartialOrd for BigNum { fn partial_cmp(&self, oth: &BigNum) -> Option { - self.deref().partial_cmp(oth.deref()) + Some(self.cmp(oth)) } } diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index d211006b78..97242ff4d8 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -832,7 +832,7 @@ impl Ord for X509 { impl PartialOrd for X509 { fn partial_cmp(&self, other: &Self) -> Option { - X509Ref::partial_cmp(self, other) + Some(self.cmp(other)) } }