]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix clippy 1.85 precedence warnings 12653/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 21 Feb 2025 10:22:27 +0000 (11:22 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 21 Feb 2025 13:57:21 +0000 (14:57 +0100)
commit3bc2a14fbfefddbfc241bf6d961a57c3b24835a3
treecea233bfc4ed8cd18849863e56c6bfb2b29680d5
parent726de5520f77e778cd2511bf262611079ae2528d
rust: fix clippy 1.85 precedence warnings

warning: operator precedence can trip the unwary
   --> src/jsonbuilder.rs:781:36
    |
781 |                 buf[offset] = HEX[(x >> 4 & 0xf) as usize];
    |                                    ^^^^^^^^^^^^ help: consider parenthesizing your expression: `(x >> 4) & 0xf`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
    = note: `#[warn(clippy::precedence)]` on by default
rust/src/ja4.rs
rust/src/jsonbuilder.rs
rust/src/rdp/util.rs
rust/src/smb/smb1_records.rs