diff options
author | Aram Drevekenin <aram@poor.dev> | 2020-05-03 19:07:35 +0200 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2020-05-03 19:07:35 +0200 |
commit | 62800d8b9eab0e12fdd2cb2440284e0195ead83a (patch) | |
tree | 540e51764c43589e86b619fae42e3e24225b2440 | |
parent | b663b563a64b3c9031424cac1af569d98c45c2c7 (diff) |
style(lint): make clippy happy
-rw-r--r-- | src/network/sniffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/sniffer.rs b/src/network/sniffer.rs index 405a35a..52014b8 100644 --- a/src/network/sniffer.rs +++ b/src/network/sniffer.rs @@ -29,7 +29,7 @@ pub enum Direction { } impl Direction { - pub fn new(network_interface_ips: &Vec<IpNetwork>, source: IpAddr) -> Self { + pub fn new(network_interface_ips: &[IpNetwork], source: IpAddr) -> Self { if network_interface_ips .iter() .any(|ip_network| ip_network.ip() == source) |