Skip to content

Commit

Permalink
Merge pull request #2052 from wiktor-k/fix-clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings produced by newer Rust
  • Loading branch information
alex committed Oct 12, 2023
2 parents 10cee24 + 32734b7 commit 9e79073
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/lib.rs
Expand Up @@ -11,7 +11,7 @@
#![recursion_limit = "128"] // configure fixed limit across all rust versions

extern crate libc;
pub use libc::*;
pub use libc::c_int;

#[cfg(feature = "unstable_boringssl")]
extern crate bssl_sys;
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/bn.rs
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
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
2 changes: 1 addition & 1 deletion systest/Cargo.toml
Expand Up @@ -9,7 +9,7 @@ libc = "0.2"
openssl-sys = { path = "../openssl-sys" }

[build-dependencies]
ctest2 = "0.4"
ctest2 = "0.4.7"

[features]
vendored = ['openssl-sys/vendored']
Expand Down

0 comments on commit 9e79073

Please sign in to comment.