chore: listen to clippy
This commit is contained in:
parent
823133c034
commit
974ca80298
7 changed files with 13 additions and 29 deletions
|
|
@ -58,21 +58,6 @@ impl Device {
|
|||
)
|
||||
.get_result(conn)
|
||||
}
|
||||
|
||||
pub fn by_device_id(
|
||||
conn: &mut SqliteConnection,
|
||||
user_id: i64,
|
||||
device_id: &str,
|
||||
) -> diesel::QueryResult<Self> {
|
||||
devices::dsl::devices
|
||||
.select(Self::as_select())
|
||||
.filter(
|
||||
devices::user_id
|
||||
.eq(user_id)
|
||||
.and(devices::device_id.eq(device_id)),
|
||||
)
|
||||
.get_result(conn)
|
||||
}
|
||||
}
|
||||
|
||||
impl NewDevice {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue