Skip to content

refactor: remove unwrap #420

refactor: remove unwrap

refactor: remove unwrap #420

Triggered via push December 10, 2024 04:28
Status Success
Total duration 2m 45s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

320 errors and 21 warnings
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L187
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:187:22 | 187 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L179
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:179:23 | 179 | vlan_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L171
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:171:22 | 171 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L161
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:161:23 | 161 | ipv4_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L151
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:151:23 | 151 | ipv6_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:32 | 111 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:17 | 111 | / UdpPacket::new(i.unwrap().payload()) 112 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:32 | 100 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:17 | 100 | / UdpPacket::new(i.unwrap().payload()) 101 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:32 | 89 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:17 | 89 | / UdpPacket::new(i.unwrap().payload()) 90 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L70
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:70:41 | 70 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L60
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:60:41 | 60 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L50
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:50:41 | 50 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
the function has a cognitive complexity of (35/10): src/net/parser/keys.rs#L32
error: the function has a cognitive complexity of (35/10) --> src/net/parser/keys.rs:32:8 | 32 | pub fn parse_keys(packet: pcap::Packet) -> Result<(Key, Key), NetError> { | ^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
the function has a cognitive complexity of (15/10): src/net/parser/fluereflows.rs#L28
error: the function has a cognitive complexity of (15/10) --> src/net/parser/fluereflows.rs:28:8 | 28 | pub fn parse_fluereflow(packet: pcap::Packet) -> Result<(usize, [u8; 9], FluereRecord), NetError> { | ^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity = note: requested on the command line with `-D clippy::cognitive-complexity`
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L18
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:18:26 | 18 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L17
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:17:21 | 17 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L15
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:15:26 | 15 | let _sleep_windows = args.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L14
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:14:21 | 14 | let _interval = args.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L13
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:13:20 | 13 | let duration = args.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L11
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:11:21 | 11 | let pcap_file = args.files.pcap.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap_err()` on a `Result` value: src/net/online_fluereflow.rs#L265
error: used `unwrap_err()` on a `Result` value --> src/net/online_fluereflow.rs:265:40 | 265 | error!("Export error: {}", exporter.unwrap_err()); | ^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Ok`, it will panic = help: consider using `expect_err()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L254
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:254:9 | 254 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L246
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:246:17 | 246 | plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L229
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:229:28 | 229 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L206
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:206:33 | 206 | ... plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L179
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:179:25 | 179 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L70
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:70:20 | 70 | let mut file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L47
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:47:26 | 47 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L46
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:46:24 | 46 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L45
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:45:20 | 45 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L44
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:44:20 | 44 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L42
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:42:19 | 42 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L41
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:41:20 | 41 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/offline_fluereflows.rs#L51
error: used `unwrap()` on a `Result` value --> src/net/offline_fluereflows.rs:51:16 | 51 | let file = fs::File::create(output_file_path.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L30
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:30:24 | 30 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L29
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:29:19 | 29 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L28
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:28:21 | 28 | let file_name = arg.files.file.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L27
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:27:21 | 27 | let _csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L362
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:362:9 | 362 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L347
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:347:29 | 347 | ... plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L333
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:333:28 | 333 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L306
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:306:29 | 306 | / ... cloned_plugin_manager 307 | | ... .process_flow_data(*flow) 308 | | ... .await 309 | | ... .unwrap(); | |___________________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L278
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:278:25 | 278 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L157
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:157:17 | 157 | / terminal 158 | | .draw(|f| { 159 | | draw_ui( 160 | | f, ... | 166 | | }) 167 | | .unwrap(); | |_____________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L85
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:85:26 | 85 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L84
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:84:21 | 84 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L74
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:74:26 | 74 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L73
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:73:24 | 73 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L72
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:72:20 | 72 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L71
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:71:20 | 71 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L69
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:69:19 | 69 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L68
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:68:20 | 68 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L99
error: used `unwrap()` on an `Option` value --> src/logger.rs:99:22 | 99 | writeln!(self.file.as_ref().unwrap(), "{}", formatted_message).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L88
error: used `unwrap()` on an `Option` value --> src/logger.rs:88:19 | 88 | match self.write_to_std.as_ref().unwrap() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L55
error: used `unwrap()` on an `Option` value --> src/logger.rs:55:38 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L55
error: used `unwrap()` on a `Result` value --> src/logger.rs:55:25 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L51
error: used `unwrap()` on a `Result` value --> src/logger.rs:51:13 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L50
error: used `unwrap()` on an `Option` value --> src/logger.rs:50:12 | 50 | if path.as_ref().unwrap().parent().is_some() { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L366
error: used `unwrap()` on an `Option` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L366
error: used `unwrap()` on a `Result` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() 369 | | .parse::<u64>() 370 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L361
error: used `unwrap()` on an `Option` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L361
error: used `unwrap()` on a `Result` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() 364 | | .parse::<u64>() 365 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L356
error: used `unwrap()` on an `Option` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L356
error: used `unwrap()` on a `Result` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() 359 | | .parse::<u64>() 360 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L329
error: used `unwrap()` on an `Option` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L329
error: used `unwrap()` on a `Result` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() 332 | | .parse::<u64>() 333 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L328
error: used `unwrap()` on an `Option` value --> src/cli.rs:328:15 | 328 | let csv = args.get_one::<String>("csv").unwrap().to_string(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L298
error: used `unwrap()` on an `Option` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L298
error: used `unwrap()` on a `Result` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() 301 | | .parse::<u64>() 302 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L293
error: used `unwrap()` on an `Option` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L293
error: used `unwrap()` on a `Result` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() 296 | | .parse::<u64>() 297 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L288
error: used `unwrap()` on an `Option` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L288
error: used `unwrap()` on a `Result` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() 291 | | .parse::<u64>() 292 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L283
error: used `unwrap()` on an `Option` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L283
error: used `unwrap()` on a `Result` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() 286 | | .parse::<u64>() 287 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L252
error: used `unwrap()` on a `Result` value --> src/cli.rs:252:28 | 252 | for (i, device) in Device::list().unwrap().iter().enumerate() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used = note: requested on the command line with `-D clippy::unwrap-used`
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L187
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:187:22 | 187 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L179
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:179:23 | 179 | vlan_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L171
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:171:22 | 171 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L161
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:161:23 | 161 | ipv4_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L151
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:151:23 | 151 | ipv6_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:32 | 111 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:17 | 111 | / UdpPacket::new(i.unwrap().payload()) 112 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:32 | 100 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:17 | 100 | / UdpPacket::new(i.unwrap().payload()) 101 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:32 | 89 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:17 | 89 | / UdpPacket::new(i.unwrap().payload()) 90 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L70
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:70:41 | 70 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L60
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:60:41 | 60 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L50
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:50:41 | 50 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
the function has a cognitive complexity of (35/10): src/net/parser/keys.rs#L32
error: the function has a cognitive complexity of (35/10) --> src/net/parser/keys.rs:32:8 | 32 | pub fn parse_keys(packet: pcap::Packet) -> Result<(Key, Key), NetError> { | ^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
the function has a cognitive complexity of (15/10): src/net/parser/fluereflows.rs#L28
error: the function has a cognitive complexity of (15/10) --> src/net/parser/fluereflows.rs:28:8 | 28 | pub fn parse_fluereflow(packet: pcap::Packet) -> Result<(usize, [u8; 9], FluereRecord), NetError> { | ^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity = note: requested on the command line with `-D clippy::cognitive-complexity`
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L18
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:18:26 | 18 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L17
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:17:21 | 17 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L15
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:15:26 | 15 | let _sleep_windows = args.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L14
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:14:21 | 14 | let _interval = args.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L13
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:13:20 | 13 | let duration = args.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L11
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:11:21 | 11 | let pcap_file = args.files.pcap.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap_err()` on a `Result` value: src/net/online_fluereflow.rs#L265
error: used `unwrap_err()` on a `Result` value --> src/net/online_fluereflow.rs:265:40 | 265 | error!("Export error: {}", exporter.unwrap_err()); | ^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Ok`, it will panic = help: consider using `expect_err()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L254
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:254:9 | 254 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L246
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:246:17 | 246 | plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L229
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:229:28 | 229 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L206
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:206:33 | 206 | ... plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L179
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:179:25 | 179 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L70
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:70:20 | 70 | let mut file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L47
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:47:26 | 47 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L46
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:46:24 | 46 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L45
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:45:20 | 45 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L44
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:44:20 | 44 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L42
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:42:19 | 42 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L41
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:41:20 | 41 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/offline_fluereflows.rs#L51
error: used `unwrap()` on a `Result` value --> src/net/offline_fluereflows.rs:51:16 | 51 | let file = fs::File::create(output_file_path.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L30
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:30:24 | 30 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L29
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:29:19 | 29 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L28
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:28:21 | 28 | let file_name = arg.files.file.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L27
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:27:21 | 27 | let _csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L362
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:362:9 | 362 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L347
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:347:29 | 347 | ... plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L333
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:333:28 | 333 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L306
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:306:29 | 306 | / ... cloned_plugin_manager 307 | | ... .process_flow_data(*flow) 308 | | ... .await 309 | | ... .unwrap(); | |___________________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L278
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:278:25 | 278 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L157
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:157:17 | 157 | / terminal 158 | | .draw(|f| { 159 | | draw_ui( 160 | | f, ... | 166 | | }) 167 | | .unwrap(); | |_____________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L85
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:85:26 | 85 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L84
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:84:21 | 84 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L74
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:74:26 | 74 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L73
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:73:24 | 73 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L72
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:72:20 | 72 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L71
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:71:20 | 71 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L69
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:69:19 | 69 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L68
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:68:20 | 68 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L99
error: used `unwrap()` on an `Option` value --> src/logger.rs:99:22 | 99 | writeln!(self.file.as_ref().unwrap(), "{}", formatted_message).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L88
error: used `unwrap()` on an `Option` value --> src/logger.rs:88:19 | 88 | match self.write_to_std.as_ref().unwrap() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L55
error: used `unwrap()` on an `Option` value --> src/logger.rs:55:38 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L55
error: used `unwrap()` on a `Result` value --> src/logger.rs:55:25 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L51
error: used `unwrap()` on a `Result` value --> src/logger.rs:51:13 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L50
error: used `unwrap()` on an `Option` value --> src/logger.rs:50:12 | 50 | if path.as_ref().unwrap().parent().is_some() { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L366
error: used `unwrap()` on an `Option` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L366
error: used `unwrap()` on a `Result` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() 369 | | .parse::<u64>() 370 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L361
error: used `unwrap()` on an `Option` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L361
error: used `unwrap()` on a `Result` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() 364 | | .parse::<u64>() 365 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L356
error: used `unwrap()` on an `Option` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L356
error: used `unwrap()` on a `Result` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() 359 | | .parse::<u64>() 360 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L329
error: used `unwrap()` on an `Option` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L329
error: used `unwrap()` on a `Result` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() 332 | | .parse::<u64>() 333 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L328
error: used `unwrap()` on an `Option` value --> src/cli.rs:328:15 | 328 | let csv = args.get_one::<String>("csv").unwrap().to_string(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L298
error: used `unwrap()` on an `Option` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L298
error: used `unwrap()` on a `Result` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() 301 | | .parse::<u64>() 302 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L293
error: used `unwrap()` on an `Option` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L293
error: used `unwrap()` on a `Result` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() 296 | | .parse::<u64>() 297 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L288
error: used `unwrap()` on an `Option` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L288
error: used `unwrap()` on a `Result` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() 291 | | .parse::<u64>() 292 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L283
error: used `unwrap()` on an `Option` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L283
error: used `unwrap()` on a `Result` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() 286 | | .parse::<u64>() 287 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L252
error: used `unwrap()` on a `Result` value --> src/cli.rs:252:28 | 252 | for (i, device) in Device::list().unwrap().iter().enumerate() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used = note: requested on the command line with `-D clippy::unwrap-used`
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L187
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:187:22 | 187 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L179
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:179:23 | 179 | vlan_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L171
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:171:22 | 171 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L161
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:161:23 | 161 | ipv4_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L151
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:151:23 | 151 | ipv6_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:32 | 111 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:17 | 111 | / UdpPacket::new(i.unwrap().payload()) 112 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:32 | 100 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:17 | 100 | / UdpPacket::new(i.unwrap().payload()) 101 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:32 | 89 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:17 | 89 | / UdpPacket::new(i.unwrap().payload()) 90 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L70
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:70:41 | 70 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L60
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:60:41 | 60 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L50
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:50:41 | 50 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
the function has a cognitive complexity of (35/10): src/net/parser/keys.rs#L32
error: the function has a cognitive complexity of (35/10) --> src/net/parser/keys.rs:32:8 | 32 | pub fn parse_keys(packet: pcap::Packet) -> Result<(Key, Key), NetError> { | ^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
the function has a cognitive complexity of (15/10): src/net/parser/fluereflows.rs#L28
error: the function has a cognitive complexity of (15/10) --> src/net/parser/fluereflows.rs:28:8 | 28 | pub fn parse_fluereflow(packet: pcap::Packet) -> Result<(usize, [u8; 9], FluereRecord), NetError> { | ^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity = note: requested on the command line with `-D clippy::cognitive-complexity`
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L18
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:18:26 | 18 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L17
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:17:21 | 17 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L15
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:15:26 | 15 | let _sleep_windows = args.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L14
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:14:21 | 14 | let _interval = args.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L13
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:13:20 | 13 | let duration = args.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L11
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:11:21 | 11 | let pcap_file = args.files.pcap.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap_err()` on a `Result` value: src/net/online_fluereflow.rs#L265
error: used `unwrap_err()` on a `Result` value --> src/net/online_fluereflow.rs:265:40 | 265 | error!("Export error: {}", exporter.unwrap_err()); | ^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Ok`, it will panic = help: consider using `expect_err()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L254
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:254:9 | 254 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L246
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:246:17 | 246 | plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L229
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:229:28 | 229 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L206
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:206:33 | 206 | ... plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L179
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:179:25 | 179 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L70
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:70:20 | 70 | let mut file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L47
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:47:26 | 47 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L46
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:46:24 | 46 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L45
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:45:20 | 45 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L44
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:44:20 | 44 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L42
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:42:19 | 42 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L41
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:41:20 | 41 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/offline_fluereflows.rs#L51
error: used `unwrap()` on a `Result` value --> src/net/offline_fluereflows.rs:51:16 | 51 | let file = fs::File::create(output_file_path.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L30
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:30:24 | 30 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L29
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:29:19 | 29 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L28
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:28:21 | 28 | let file_name = arg.files.file.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L27
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:27:21 | 27 | let _csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L362
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:362:9 | 362 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L347
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:347:29 | 347 | ... plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L333
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:333:28 | 333 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L306
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:306:29 | 306 | / ... cloned_plugin_manager 307 | | ... .process_flow_data(*flow) 308 | | ... .await 309 | | ... .unwrap(); | |___________________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L278
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:278:25 | 278 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L157
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:157:17 | 157 | / terminal 158 | | .draw(|f| { 159 | | draw_ui( 160 | | f, ... | 166 | | }) 167 | | .unwrap(); | |_____________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L85
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:85:26 | 85 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L84
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:84:21 | 84 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L74
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:74:26 | 74 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L73
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:73:24 | 73 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L72
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:72:20 | 72 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L71
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:71:20 | 71 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L69
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:69:19 | 69 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L68
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:68:20 | 68 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L99
error: used `unwrap()` on an `Option` value --> src/logger.rs:99:22 | 99 | writeln!(self.file.as_ref().unwrap(), "{}", formatted_message).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L88
error: used `unwrap()` on an `Option` value --> src/logger.rs:88:19 | 88 | match self.write_to_std.as_ref().unwrap() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L55
error: used `unwrap()` on an `Option` value --> src/logger.rs:55:38 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L55
error: used `unwrap()` on a `Result` value --> src/logger.rs:55:25 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L51
error: used `unwrap()` on a `Result` value --> src/logger.rs:51:13 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L50
error: used `unwrap()` on an `Option` value --> src/logger.rs:50:12 | 50 | if path.as_ref().unwrap().parent().is_some() { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L366
error: used `unwrap()` on an `Option` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L366
error: used `unwrap()` on a `Result` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() 369 | | .parse::<u64>() 370 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L361
error: used `unwrap()` on an `Option` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L361
error: used `unwrap()` on a `Result` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() 364 | | .parse::<u64>() 365 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L356
error: used `unwrap()` on an `Option` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L356
error: used `unwrap()` on a `Result` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() 359 | | .parse::<u64>() 360 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L329
error: used `unwrap()` on an `Option` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L329
error: used `unwrap()` on a `Result` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() 332 | | .parse::<u64>() 333 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L328
error: used `unwrap()` on an `Option` value --> src/cli.rs:328:15 | 328 | let csv = args.get_one::<String>("csv").unwrap().to_string(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L298
error: used `unwrap()` on an `Option` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L298
error: used `unwrap()` on a `Result` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() 301 | | .parse::<u64>() 302 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L293
error: used `unwrap()` on an `Option` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L293
error: used `unwrap()` on a `Result` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() 296 | | .parse::<u64>() 297 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L288
error: used `unwrap()` on an `Option` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L288
error: used `unwrap()` on a `Result` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() 291 | | .parse::<u64>() 292 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L283
error: used `unwrap()` on an `Option` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L283
error: used `unwrap()` on a `Result` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() 286 | | .parse::<u64>() 287 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L252
error: used `unwrap()` on a `Result` value --> src/cli.rs:252:28 | 252 | for (i, device) in Device::list().unwrap().iter().enumerate() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used = note: requested on the command line with `-D clippy::unwrap-used`
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L187
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:187:22 | 187 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L179
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:179:23 | 179 | vlan_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L171
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:171:22 | 171 | arp_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L161
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:161:23 | 161 | ipv4_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L151
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:151:23 | 151 | ipv6_keys(i.unwrap())? | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:32 | 111 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L111
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:111:17 | 111 | / UdpPacket::new(i.unwrap().payload()) 112 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:32 | 100 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L100
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:100:17 | 100 | / UdpPacket::new(i.unwrap().payload()) 101 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:32 | 89 | UdpPacket::new(i.unwrap().payload()) | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L89
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:89:17 | 89 | / UdpPacket::new(i.unwrap().payload()) 90 | | .unwrap() | |_____________________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L70
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:70:41 | 70 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L60
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:60:41 | 60 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/parser/keys.rs#L50
error: used `unwrap()` on an `Option` value --> src/net/parser/keys.rs:50:41 | 50 | let is_udp = UdpPacket::new(i.unwrap().payload()).is_some(); | ^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
the function has a cognitive complexity of (35/10): src/net/parser/keys.rs#L32
error: the function has a cognitive complexity of (35/10) --> src/net/parser/keys.rs:32:8 | 32 | pub fn parse_keys(packet: pcap::Packet) -> Result<(Key, Key), NetError> { | ^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
the function has a cognitive complexity of (15/10): src/net/parser/fluereflows.rs#L28
error: the function has a cognitive complexity of (15/10) --> src/net/parser/fluereflows.rs:28:8 | 28 | pub fn parse_fluereflow(packet: pcap::Packet) -> Result<(usize, [u8; 9], FluereRecord), NetError> { | ^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity = note: requested on the command line with `-D clippy::cognitive-complexity`
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L18
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:18:26 | 18 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/packet_pcap.rs#L17
error: used `unwrap()` on a `Result` value --> src/net/packet_pcap.rs:17:21 | 17 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L15
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:15:26 | 15 | let _sleep_windows = args.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L14
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:14:21 | 14 | let _interval = args.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L13
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:13:20 | 13 | let duration = args.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/packet_pcap.rs#L11
error: used `unwrap()` on an `Option` value --> src/net/packet_pcap.rs:11:21 | 11 | let pcap_file = args.files.pcap.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap_err()` on a `Result` value: src/net/online_fluereflow.rs#L265
error: used `unwrap_err()` on a `Result` value --> src/net/online_fluereflow.rs:265:40 | 265 | error!("Export error: {}", exporter.unwrap_err()); | ^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Ok`, it will panic = help: consider using `expect_err()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L254
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:254:9 | 254 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L246
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:246:17 | 246 | plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L229
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:229:28 | 229 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L206
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:206:33 | 206 | ... plugin_manager.process_flow_data(flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L179
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:179:25 | 179 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/online_fluereflow.rs#L70
error: used `unwrap()` on a `Result` value --> src/net/online_fluereflow.rs:70:20 | 70 | let mut file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L47
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:47:26 | 47 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L46
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:46:24 | 46 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L45
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:45:20 | 45 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L44
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:44:20 | 44 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L42
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:42:19 | 42 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/online_fluereflow.rs#L41
error: used `unwrap()` on an `Option` value --> src/net/online_fluereflow.rs:41:20 | 41 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/offline_fluereflows.rs#L51
error: used `unwrap()` on a `Result` value --> src/net/offline_fluereflows.rs:51:16 | 51 | let file = fs::File::create(output_file_path.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L30
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:30:24 | 30 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L29
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:29:19 | 29 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L28
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:28:21 | 28 | let file_name = arg.files.file.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/offline_fluereflows.rs#L27
error: used `unwrap()` on an `Option` value --> src/net/offline_fluereflows.rs:27:21 | 27 | let _csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L362
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:362:9 | 362 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L347
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:347:29 | 347 | ... plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L333
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:333:28 | 333 | file = fs::File::create(file_path.as_ref()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L306
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:306:29 | 306 | / ... cloned_plugin_manager 307 | | ... .process_flow_data(*flow) 308 | | ... .await 309 | | ... .unwrap(); | |___________________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L278
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:278:25 | 278 | plugin_manager.process_flow_data(*flow).await.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L157
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:157:17 | 157 | / terminal 158 | | .draw(|f| { 159 | | draw_ui( 160 | | f, ... | 166 | | }) 167 | | .unwrap(); | |_____________________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L85
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:85:26 | 85 | let mut cap_device = CaptureDevice::new(interface.clone()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/net/live_fluereflow.rs#L84
error: used `unwrap()` on a `Result` value --> src/net/live_fluereflow.rs:84:21 | 84 | let interface = find_device(interface_name.as_str()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L74
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:74:26 | 74 | let _sleep_windows = arg.parameters.sleep_windows.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L73
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:73:24 | 73 | let flow_timeout = arg.parameters.timeout.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L72
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:72:20 | 72 | let interval = arg.parameters.interval.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L71
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:71:20 | 71 | let duration = arg.parameters.duration.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L69
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:69:19 | 69 | let use_mac = arg.parameters.use_mac.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/net/live_fluereflow.rs#L68
error: used `unwrap()` on an `Option` value --> src/net/live_fluereflow.rs:68:20 | 68 | let csv_file = arg.files.csv.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L99
error: used `unwrap()` on an `Option` value --> src/logger.rs:99:22 | 99 | writeln!(self.file.as_ref().unwrap(), "{}", formatted_message).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L88
error: used `unwrap()` on an `Option` value --> src/logger.rs:88:19 | 88 | match self.write_to_std.as_ref().unwrap() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L55
error: used `unwrap()` on an `Option` value --> src/logger.rs:55:38 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L55
error: used `unwrap()` on a `Result` value --> src/logger.rs:55:25 | 55 | file = Some(File::create(path.as_ref().unwrap()).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L51
error: used `unwrap()` on an `Option` value --> src/logger.rs:51:37 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/logger.rs#L51
error: used `unwrap()` on a `Result` value --> src/logger.rs:51:13 | 51 | std::fs::create_dir_all(path.as_ref().unwrap().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/logger.rs#L50
error: used `unwrap()` on an `Option` value --> src/logger.rs:50:12 | 50 | if path.as_ref().unwrap().parent().is_some() { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L366
error: used `unwrap()` on an `Option` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L366
error: used `unwrap()` on a `Result` value --> src/cli.rs:366:25 | 366 | let sleep_windows = args | _________________________^ 367 | | .get_one::<String>("sleep_windows") 368 | | .unwrap() 369 | | .parse::<u64>() 370 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L361
error: used `unwrap()` on an `Option` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L361
error: used `unwrap()` on a `Result` value --> src/cli.rs:361:20 | 361 | let interval = args | ____________________^ 362 | | .get_one::<String>("interval") 363 | | .unwrap() 364 | | .parse::<u64>() 365 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L356
error: used `unwrap()` on an `Option` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L356
error: used `unwrap()` on a `Result` value --> src/cli.rs:356:20 | 356 | let duration = args | ____________________^ 357 | | .get_one::<String>("duration") 358 | | .unwrap() 359 | | .parse::<u64>() 360 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L329
error: used `unwrap()` on an `Option` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L329
error: used `unwrap()` on a `Result` value --> src/cli.rs:329:19 | 329 | let timeout = args | ___________________^ 330 | | .get_one::<String>("timeout") 331 | | .unwrap() 332 | | .parse::<u64>() 333 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L328
error: used `unwrap()` on an `Option` value --> src/cli.rs:328:15 | 328 | let csv = args.get_one::<String>("csv").unwrap().to_string(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L298
error: used `unwrap()` on an `Option` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L298
error: used `unwrap()` on a `Result` value --> src/cli.rs:298:25 | 298 | let sleep_windows = args | _________________________^ 299 | | .get_one::<String>("sleep_windows") 300 | | .unwrap() 301 | | .parse::<u64>() 302 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L293
error: used `unwrap()` on an `Option` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L293
error: used `unwrap()` on a `Result` value --> src/cli.rs:293:20 | 293 | let interval = args | ____________________^ 294 | | .get_one::<String>("interval") 295 | | .unwrap() 296 | | .parse::<u64>() 297 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L288
error: used `unwrap()` on an `Option` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L288
error: used `unwrap()` on a `Result` value --> src/cli.rs:288:20 | 288 | let duration = args | ____________________^ 289 | | .get_one::<String>("duration") 290 | | .unwrap() 291 | | .parse::<u64>() 292 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on an `Option` value: src/cli.rs#L283
error: used `unwrap()` on an `Option` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() | |_________________^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L283
error: used `unwrap()` on a `Result` value --> src/cli.rs:283:19 | 283 | let timeout = args | ___________________^ 284 | | .get_one::<String>("timeout") 285 | | .unwrap() 286 | | .parse::<u64>() 287 | | .unwrap(); | |_________________^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
used `unwrap()` on a `Result` value: src/cli.rs#L252
error: used `unwrap()` on a `Result` value --> src/cli.rs:252:28 | 252 | for (i, device) in Device::list().unwrap().iter().enumerate() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used = note: requested on the command line with `-D clippy::unwrap-used`
this import is redundant: src/error.rs#L2
warning: this import is redundant --> src/error.rs:2:1 | 2 | use pcap; | ^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
this function depends on never type fallback being `()`: fluere-plugin/src/lib.rs#L42
warning: this function depends on never type fallback being `()` --> fluere-plugin/src/lib.rs:42:5 | 42 | pub async fn load_plugins(&self, config: &Config) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: mlua::FromLua<'_>` will fail --> fluere-plugin/src/lib.rs:85:38 | 85 | ... func.call(argument_table)?; | ^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L98
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:98:5 | 97 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 98 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 97 ~ 98 ~ path_base.join("fluere") |
unneeded unit expression: fluere-config/src/init.rs#L25
warning: unneeded unit expression --> fluere-config/src/init.rs:25:21 | 25 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
this import is redundant: src/error.rs#L2
warning: this import is redundant --> src/error.rs:2:1 | 2 | use pcap; | ^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
this function depends on never type fallback being `()`: fluere-plugin/src/lib.rs#L42
warning: this function depends on never type fallback being `()` --> fluere-plugin/src/lib.rs:42:5 | 42 | pub async fn load_plugins(&self, config: &Config) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: mlua::FromLua<'_>` will fail --> fluere-plugin/src/lib.rs:85:38 | 85 | ... func.call(argument_table)?; | ^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L98
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:98:5 | 97 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 98 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 97 ~ 98 ~ path_base.join("fluere") |
unneeded unit expression: fluere-config/src/init.rs#L25
warning: unneeded unit expression --> fluere-config/src/init.rs:25:21 | 25 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
this import is redundant: src/error.rs#L2
warning: this import is redundant --> src/error.rs:2:1 | 2 | use pcap; | ^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
this function depends on never type fallback being `()`: fluere-plugin/src/lib.rs#L42
warning: this function depends on never type fallback being `()` --> fluere-plugin/src/lib.rs:42:5 | 42 | pub async fn load_plugins(&self, config: &Config) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: mlua::FromLua<'_>` will fail --> fluere-plugin/src/lib.rs:85:38 | 85 | ... func.call(argument_table)?; | ^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L98
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:98:5 | 97 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 98 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 97 ~ 98 ~ path_base.join("fluere") |
unneeded unit expression: fluere-config/src/init.rs#L25
warning: unneeded unit expression --> fluere-config/src/init.rs:25:21 | 25 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
this import is redundant: src/error.rs#L2
warning: this import is redundant --> src/error.rs:2:1 | 2 | use pcap; | ^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
this function depends on never type fallback being `()`: fluere-plugin/src/lib.rs#L42
warning: this function depends on never type fallback being `()` --> fluere-plugin/src/lib.rs:42:5 | 42 | pub async fn load_plugins(&self, config: &Config) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: mlua::FromLua<'_>` will fail --> fluere-plugin/src/lib.rs:85:38 | 85 | ... func.call(argument_table)?; | ^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
this function has too many arguments (27/7): fluereflow/src/types/fluereflow.rs#L63
warning: this function has too many arguments (27/7) --> fluereflow/src/types/fluereflow.rs:63:5 | 63 | / pub fn new( 64 | | source: IpAddr, 65 | | destination: IpAddr, 66 | | d_pkts: u32, ... | 90 | | tos: u8, 91 | | ) -> FluereRecord { | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
returning the result of a `let` binding from a block: fluere-config/src/init.rs#L98
warning: returning the result of a `let` binding from a block --> fluere-config/src/init.rs:98:5 | 97 | let path_config = path_base.join("fluere"); | ------------------------------------------- unnecessary `let` binding 98 | path_config | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 97 ~ 98 ~ path_base.join("fluere") |
unneeded unit expression: fluere-config/src/init.rs#L25
warning: unneeded unit expression --> fluere-config/src/init.rs:25:21 | 25 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default