Skip to content

Commit

Permalink
SSL_CIPHER_find: heed new nightly clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Jan 1, 2025
1 parent dfc2347 commit a230c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ type SSL_CIPHER = crate::SslCipher;
entry! {
pub fn _SSL_CIPHER_find(_ssl: *const SSL, ptr: *const c_uchar) -> *const SSL_CIPHER {
let slice = try_slice!(ptr, 2);
let id = (slice[0] as u16) << 8 | (slice[1] as u16);
let id = ((slice[0] as u16) << 8) | (slice[1] as u16);
crate::SslCipher::find_by_id(rustls::CipherSuite::from(id))
.map(|cipher| cipher as *const SSL_CIPHER)
.unwrap_or_else(ptr::null)
Expand Down

0 comments on commit a230c29

Please sign in to comment.