Skip to content

Commit 9e79073

Browse files
authored
Merge pull request sfackler#2052 from wiktor-k/fix-clippy
Fix clippy warnings produced by newer Rust
2 parents 10cee24 + 32734b7 commit 9e79073

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

openssl-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![recursion_limit = "128"] // configure fixed limit across all rust versions
1212

1313
extern crate libc;
14-
pub use libc::*;
14+
pub use libc::c_int;
1515

1616
#[cfg(feature = "unstable_boringssl")]
1717
extern crate bssl_sys;

openssl/src/bn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ impl Ord for BigNumRef {
12291229

12301230
impl PartialOrd for BigNum {
12311231
fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering> {
1232-
self.deref().partial_cmp(oth.deref())
1232+
Some(self.cmp(oth))
12331233
}
12341234
}
12351235

openssl/src/x509/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ impl Ord for X509 {
832832

833833
impl PartialOrd for X509 {
834834
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
835-
X509Ref::partial_cmp(self, other)
835+
Some(self.cmp(other))
836836
}
837837
}
838838

systest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ libc = "0.2"
99
openssl-sys = { path = "../openssl-sys" }
1010

1111
[build-dependencies]
12-
ctest2 = "0.4"
12+
ctest2 = "0.4.7"
1313

1414
[features]
1515
vendored = ['openssl-sys/vendored']

0 commit comments

Comments
 (0)