]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/smb: fix clippy nightly warning 10691/head 10693/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 21 Mar 2024 15:15:53 +0000 (16:15 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Thu, 21 Mar 2024 15:15:53 +0000 (16:15 +0100)
commitf7cde8f00ef6d1f92bd86a47d5888bda06941f46
tree391672785dd17b93dfb7b6294e6af3327d3ae71d
parent02f2fb88333af767ab3b171643357d607f4e86f6
rust/smb: fix clippy nightly warning

error: unnecessary use of `to_vec`
    --> src/smb/smb.rs:1048:62
     |
1048 |         let (name, is_dcerpc) = match self.guid2name_map.get(&guid.to_vec()) {
     |                                                              ^^^^^^^^^^^^^^ help: replace it with: `guid`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
     = note: `#[deny(clippy::unnecessary_to_owned)]` implied by `#[deny(warnings)]`

And also other uses of to_vec() on already Vec
rust/src/dhcp/logger.rs
rust/src/smb/smb.rs
rust/src/smb/smb1.rs