]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Fri, 9 Feb 2024 14:11:25 +0000 (19:41 +0530)
commit8df02ba0e4fe6c15975a6d1aac92f003a0d022ee
tree31f26099fa962a46aca20c831d931216ba3b0a17
parenta0254bfa03de633229d663d174028586b87cc550
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

(cherry picked from commit 68b0052018079adc11ea1e35ab686c30716a8aad)
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