mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|
2 years ago | |
|---|---|---|
| .. | ||
| .cargo | 6 years ago | |
| derive | 2 years ago | |
| src | 2 years ago | |
| .gitignore | 3 years ago | |
| Cargo.lock.in | 2 years ago | |
| Cargo.toml.in | 2 years ago | |
| Makefile.am | 3 years ago | |
| cbindgen.toml | 3 years ago | |
| rustfmt.toml | 2 years ago | |