Skip to content

Commit 37e6e49

Browse files
committed
SSL_CIPHER_find: heed new nightly clippy warning
1 parent dfc2347 commit 37e6e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ type SSL_CIPHER = crate::SslCipher;
14701470
entry! {
14711471
pub fn _SSL_CIPHER_find(_ssl: *const SSL, ptr: *const c_uchar) -> *const SSL_CIPHER {
14721472
let slice = try_slice!(ptr, 2);
1473-
let id = (slice[0] as u16) << 8 | (slice[1] as u16);
1473+
let id = ((slice[0] as u16) << 8) | (slice[1] as u16);
14741474
crate::SslCipher::find_by_id(rustls::CipherSuite::from(id))
14751475
.map(|cipher| cipher as *const SSL_CIPHER)
14761476
.unwrap_or_else(ptr::null)

0 commit comments

Comments
 (0)