Skip to content

Commit b444a84

Browse files
committed
Fix cargo clippy warnings.
1 parent ab4ab2b commit b444a84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/forwarder.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,13 @@ fn events_stats(state: &Arc<State>, stats: chirpstack_api::gw::GatewayStats) {
373373
}
374374

375375
fn events_up(state: &Arc<State>, up: chirpstack_api::gw::UplinkFrame) {
376-
if let Some(rx_info) = &up.rx_info {
377-
if !((rx_info.crc_status() == gw::CrcStatus::CrcOk && state.forward_crc_ok)
376+
if let Some(rx_info) = &up.rx_info
377+
&& !((rx_info.crc_status() == gw::CrcStatus::CrcOk && state.forward_crc_ok)
378378
|| (rx_info.crc_status() == gw::CrcStatus::BadCrc && state.forward_crc_invalid)
379379
|| (rx_info.crc_status() == gw::CrcStatus::NoCrc && state.forward_crc_missing))
380380
{
381381
return;
382382
}
383-
}
384383

385384
let rxpk = match structs::RxPk::from_proto(&up) {
386385
Ok(v) => v,

0 commit comments

Comments
 (0)