From c6dc9a3f7918d9d4172e507f342dd6aa8acd6e71 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Tue, 5 Sep 2023 12:36:05 +0100 Subject: [PATCH] Fix compiler warning. --- src/backend/semtech_udp/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/semtech_udp/structs.rs b/src/backend/semtech_udp/structs.rs index 2f6e428..267f2e1 100644 --- a/src/backend/semtech_udp/structs.rs +++ b/src/backend/semtech_udp/structs.rs @@ -485,7 +485,7 @@ impl RxPk { let uplink_id = if cfg!(test) { 123 } else { rng.gen::() }; let mut pl = pl.clone(); - let mut rx_info = pl.rx_info.as_mut().unwrap(); + let rx_info = pl.rx_info.as_mut().unwrap(); rx_info.uplink_id = uplink_id; rx_info.antenna = rs.ant.into();