refactor: remove timestamp from logs #108
rust-fmt.yml
on: push
Run rustfmt style commit
13s
Annotations
48 errors and 7 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#L264
error: used `unwrap_err()` on a `Result` value
--> src/net/online_fluereflow.rs:264:40
|
264 | 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#L253
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:253:9
|
253 | 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#L245
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:245:17
|
245 | 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#L228
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:228:28
|
228 | 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#L205
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:205:33
|
205 | ... 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#L178
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:178:25
|
178 | 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#L69
error: used `unwrap()` on a `Result` value
--> src/net/online_fluereflow.rs:69:20
|
69 | 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#L46
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:46:26
|
46 | 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#L45
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:45:24
|
45 | 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#L44
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:44:20
|
44 | 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#L43
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:43:20
|
43 | 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#L41
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:41:19
|
41 | 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#L40
error: used `unwrap()` on an `Option` value
--> src/net/online_fluereflow.rs:40:20
|
40 | 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#L365
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:365:9
|
365 | 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#L350
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:350:29
|
350 | ... 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#L309
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:309:29
|
309 | / ... cloned_plugin_manager
310 | | ... .process_flow_data(*flow)
311 | | ... .await
312 | | ... .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#L281
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:281:25
|
281 | 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#L160
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:160:17
|
160 | / terminal
161 | | .draw(|f| {
162 | | draw_ui(
163 | | f,
... |
169 | | })
170 | | .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#L88
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:88:26
|
88 | 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#L87
error: used `unwrap()` on a `Result` value
--> src/net/live_fluereflow.rs:87:21
|
87 | 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#L77
error: used `unwrap()` on an `Option` value
--> src/net/live_fluereflow.rs:77:26
|
77 | 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#L76
error: used `unwrap()` on an `Option` value
--> src/net/live_fluereflow.rs:76:24
|
76 | 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#L75
error: used `unwrap()` on an `Option` value
--> src/net/live_fluereflow.rs:75:20
|
75 | 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#L74
error: used `unwrap()` on an `Option` value
--> src/net/live_fluereflow.rs:74:20
|
74 | 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#L72
error: used `unwrap()` on an `Option` value
--> src/net/live_fluereflow.rs:72:19
|
72 | 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/cli.rs#L355
error: used `unwrap()` on an `Option` value
--> src/cli.rs:355:15
|
355 | 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
= note: requested on the command line with `-D clippy::unwrap-used`
|
Run rustfmt style commit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
unused variable: `timestamp`:
src/logger.rs#L82
warning: unused variable: `timestamp`
--> src/logger.rs:82:13
|
82 | let timestamp = Local::now().format("%Y-%m-%d %H:%M:%S %z").to_string();
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `error::OptionExt`:
src/cli.rs#L4
warning: unused import: `error::OptionExt`
--> src/cli.rs:4:5
|
4 | error::OptionExt,
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_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 Rust 2024 and in a future release in all editions!
= 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
|