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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL_CIPHER_find: heed new nightly clippy warning #46

Merged
merged 1 commit into from
Jan 1, 2025
Merged

Conversation

ctz
Copy link
Member

@ctz ctz commented Jan 1, 2025

warning: operator precedence can trip the unwary
    --> src/entry.rs:1473:18
     |
1473 |         let id = (slice[0] as u16) << 8 | (slice[1] as u16);
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `((slice[0] as u16) << 8) | (slice[1] as u16)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
     = note: `#[warn(clippy::precedence)]` on by default

@ctz ctz merged commit 37e6e49 into main Jan 1, 2025
32 checks passed
@ctz ctz deleted the jbp-nightly-clippy branch January 1, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants