forked from OISF/suricata
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 (cherry picked from commit f7cde8f)
- Loading branch information
1 parent
5a05e02
commit fce01da
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters