]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix byte_char_slices clippy warnings
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 31 Jul 2024 12:10:17 +0000 (14:10 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Sep 2024 15:04:50 +0000 (17:04 +0200)
commitbc1b906a7bb87f3f4abb0d0ddae1690496de31ea
tree1d050a0e121da122795d15b5e7ab4dfab8cafc78
parentdc8cda68879a24c578c1a665d4b29fc01b574ae0
rust: fix byte_char_slices clippy warnings

warning: can be more succinctly written as a byte str
   --> src/mime/smtp.rs:762:37
    |
762 |     mime_smtp_find_url_strings(ctx, &[b'\n']);
    |                                     ^^^^^^^^ help: try: `b"\n"`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
    = note: `#[warn(clippy::byte_char_slices)]` on by default

(cherry picked from commit 564f685eea1af343642b52ba6c7f367167ac03f2)
rust/src/http2/detect.rs