]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix clippy ptr_arg warnings
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 8 Feb 2024 14:47:23 +0000 (15:47 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 9 Feb 2024 10:24:04 +0000 (11:24 +0100)
commit68b0052018079adc11ea1e35ab686c30716a8aad
tree90bd1b387212475c2bfe2d81dd734083fec51509
parent7f5e98e6df279be39a47c18ac0553a1cfebb906c
rust: fix clippy ptr_arg warnings

error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
   --> src/dns/log.rs:371:29
    |
371 | pub fn dns_print_addr(addr: &Vec<u8>) -> std::string::String {
    |                             ^^^^^^^^ help: change this to: `&[u8]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
rust/src/dhcp/logger.rs
rust/src/dns/log.rs
rust/src/ike/ikev1.rs
rust/src/nfs/nfs.rs
rust/src/smb/log.rs