chore: listen to clippy

This commit is contained in:
Jef Roosens 2025-03-31 20:13:18 +02:00
parent 823133c034
commit 974ca80298
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
7 changed files with 13 additions and 29 deletions

View file

@ -1,7 +1,7 @@
use std::collections::HashSet;
use chrono::{DateTime, Utc};
use diesel::{alias, dsl::not, prelude::*, sqlite::Sqlite};
use diesel::{alias, dsl::not, prelude::*};
use gpodder::AuthErr;
use super::SqliteRepository;
@ -100,7 +100,7 @@ impl gpodder::DeviceRepository for SqliteRepository {
let device = NewDevice {
device_id: device_id.to_string(),
user_id: user.id,
caption: patch.caption.unwrap_or(String::new()),
caption: patch.caption.unwrap_or_default(),
type_: patch.r#type.unwrap_or(gpodder::DeviceType::Other).into(),
};

View file

@ -29,7 +29,7 @@ fn set_subscriptions_for_single_device(
.collect();
// URLs originally in the database that are no longer in the list
let urls_to_delete = urls_in_db.difference(&urls);
let urls_to_delete = urls_in_db.difference(urls);
// URLs not in the database that are in the new list
let urls_to_insert = urls.difference(&urls_in_db);