mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-09 04:14:22 +00:00
lrwn: Fix compiler warnings.
This commit is contained in:
parent
570a1fb07b
commit
ee0597f500
@ -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"))?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user