diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 2251cbe85186402cd3404a191bfa70c11da96415..3ac37d87088326bc69cf836b9d779b747c7f1dfd 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -618,7 +618,7 @@ impl PartialOrd for X509Ref { impl PartialEq for X509Ref { fn eq(&self, other: &Self) -> bool { - self.cmp(other).is_eq() + self.cmp(other) == cmp::Ordering::Equal } }