From ee0597f500306e07b35c012facfd1e53491ed344 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 4 Sep 2023 14:11:05 +0100 Subject: [PATCH] lrwn: Fix compiler warnings. --- lrwn/src/region/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lrwn/src/region/mod.rs b/lrwn/src/region/mod.rs index a2bb5104..bd4c187b 100644 --- a/lrwn/src/region/mod.rs +++ b/lrwn/src/region/mod.rs @@ -612,7 +612,7 @@ impl RegionBaseConfig { } fn disable_uplink_channel_index(&mut self, channel: usize) -> Result<()> { - let mut channel = self + let channel = self .uplink_channels .get_mut(channel) .ok_or_else(|| anyhow!("Invalid channel"))?; @@ -621,7 +621,7 @@ impl RegionBaseConfig { } fn enable_uplink_channel_index(&mut self, channel: usize) -> Result<()> { - let mut channel = self + let channel = self .uplink_channels .get_mut(channel) .ok_or_else(|| anyhow!("Invalid channel"))?;