mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-16 22:38:23 +00:00
lrwn: Fix compiler warnings.
This commit is contained in:
@ -612,7 +612,7 @@ impl RegionBaseConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn disable_uplink_channel_index(&mut self, channel: usize) -> Result<()> {
|
fn disable_uplink_channel_index(&mut self, channel: usize) -> Result<()> {
|
||||||
let mut channel = self
|
let channel = self
|
||||||
.uplink_channels
|
.uplink_channels
|
||||||
.get_mut(channel)
|
.get_mut(channel)
|
||||||
.ok_or_else(|| anyhow!("Invalid channel"))?;
|
.ok_or_else(|| anyhow!("Invalid channel"))?;
|
||||||
@ -621,7 +621,7 @@ impl RegionBaseConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn enable_uplink_channel_index(&mut self, channel: usize) -> Result<()> {
|
fn enable_uplink_channel_index(&mut self, channel: usize) -> Result<()> {
|
||||||
let mut channel = self
|
let channel = self
|
||||||
.uplink_channels
|
.uplink_channels
|
||||||
.get_mut(channel)
|
.get_mut(channel)
|
||||||
.ok_or_else(|| anyhow!("Invalid channel"))?;
|
.ok_or_else(|| anyhow!("Invalid channel"))?;
|
||||||
|
Reference in New Issue
Block a user