Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Feb 1, 2024
1 parent 5d62b98 commit 504b9b4
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,14 +1646,7 @@ impl SslContextBuilder {
#[corresponds(SSL_CTX_ct_is_enabled)]
#[cfg(ossl111)]
pub fn ct_is_enabled(&self) -> bool {
unsafe {
let r = ffi::SSL_CTX_ct_is_enabled(self.as_ptr());
if r == 1 {
true
} else {
false
}
}
unsafe { ffi::SSL_CTX_ct_is_enabled(self.as_ptr()) == 1 }
}

/// Sets the status response a client wishes the server to reply with.
Expand Down Expand Up @@ -3385,14 +3378,7 @@ impl SslRef {
#[corresponds(SSL_ct_is_enabled)]
#[cfg(ossl111)]
pub fn ct_is_enabled(&self) -> bool {
unsafe {
let r = ffi::SSL_ct_is_enabled(self.as_ptr());
if r == 1 {
true
} else {
false
}
}
unsafe { ffi::SSL_ct_is_enabled(self.as_ptr()) == 1 }
}

/// Sets the status response a client wishes the server to reply with.
Expand Down

0 comments on commit 504b9b4

Please sign in to comment.