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
|
3 years ago | |
|---|---|---|
| .. | ||
| README.txt | 8 years ago | |
| ack.pcap | 8 years ago | |
| detect.rs | 4 years ago | |
| dhcp.rs | 3 years ago | |
| discover.pcap | 8 years ago | |
| logger.rs | 3 years ago | |
| mod.rs | 3 years ago | |
| offer.pcap | 8 years ago | |
| parser.rs | 3 years ago | |
| request.pcap | 8 years ago | |
README.txt
These test pcap files are individual packets broken out of a pcap containing 4 DHCP messages. The original source of the PCAP file is https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=dhcp.pcap