Fix clippy feedback in chirpstack crate.

This commit is contained in:
Orne Brocaar 2023-01-07 20:02:05 +00:00
parent cee3dd8d9c
commit 0193d783b0
3 changed files with 4 additions and 5 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,