Skip to content

Commit

Permalink
Fix clippy error indicating error in implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-k committed Oct 10, 2023
1 parent 10cee24 commit 7e52fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openssl/src/bn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ impl Ord for BigNumRef {

impl PartialOrd for BigNum {
fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering> {
self.deref().partial_cmp(oth.deref())
Some(self.cmp(oth))
}
}

Expand Down
2 changes: 1 addition & 1 deletion openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ impl Ord for X509 {

impl PartialOrd for X509 {
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
X509Ref::partial_cmp(self, other)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 7e52fe6

Please sign in to comment.