mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-18 10:36:23 +00:00
Fix clippy feedback in chirpstack crate.
This commit is contained in:
parent
cee3dd8d9c
commit
0193d783b0
@ -12,7 +12,6 @@ impl Algorithm {
|
||||
}
|
||||
|
||||
fn get_ideal_tx_power_index_and_dr(
|
||||
&self,
|
||||
nb_step: isize,
|
||||
tx_power_index: u8,
|
||||
dr: u8,
|
||||
@ -46,7 +45,7 @@ impl Algorithm {
|
||||
nb_step += 1;
|
||||
}
|
||||
|
||||
self.get_ideal_tx_power_index_and_dr(
|
||||
Self::get_ideal_tx_power_index_and_dr(
|
||||
nb_step,
|
||||
tx_power_index,
|
||||
dr,
|
||||
@ -191,7 +190,7 @@ impl Handler for Algorithm {
|
||||
return Ok(resp);
|
||||
}
|
||||
|
||||
let (desired_tx_power_index, desired_dr) = self.get_ideal_tx_power_index_and_dr(
|
||||
let (desired_tx_power_index, desired_dr) = Self::get_ideal_tx_power_index_and_dr(
|
||||
n_step,
|
||||
resp.tx_power_index,
|
||||
resp.dr,
|
||||
|
@ -10,7 +10,7 @@ use super::error::Error;
|
||||
use super::get_db_conn;
|
||||
use super::schema::device_keys;
|
||||
|
||||
#[derive(Queryable, Insertable, AsChangeset, PartialEq, Debug, Clone)]
|
||||
#[derive(Queryable, Insertable, AsChangeset, PartialEq, Eq, Debug, Clone)]
|
||||
#[diesel(table_name = device_keys)]
|
||||
pub struct DeviceKeys {
|
||||
pub dev_eui: EUI64,
|
||||
|
@ -15,7 +15,7 @@ use super::schema::{device, multicast_group, multicast_group_device, multicast_g
|
||||
use crate::downlink::classb;
|
||||
use crate::{config, gpstime::ToDateTime, gpstime::ToGpsTime};
|
||||
|
||||
#[derive(Clone, Queryable, Insertable, Debug, PartialEq)]
|
||||
#[derive(Clone, Queryable, Insertable, Debug, PartialEq, Eq)]
|
||||
#[diesel(table_name = multicast_group)]
|
||||
pub struct MulticastGroup {
|
||||
pub id: Uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user