Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warnings produced by newer Rust #2052

Merged
merged 3 commits into from Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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