lrwn: Fix compiler warnings.

This commit is contained in:
Orne Brocaar 2023-09-04 14:11:05 +01:00
parent 570a1fb07b
commit ee0597f500

View File

@ -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"))?;