fix: remove unused watch_event_query binding, prefix dead field for clippy -D warnings

This commit is contained in:
2026-07-10 04:32:54 +02:00
parent 2e32847129
commit 5266646b0b
20 changed files with 79 additions and 69 deletions

View File

@@ -21,7 +21,7 @@ pub struct WorkerDbOutput {
pub import_session: Arc<dyn ImportSessionRepository>,
pub movie_profile: Arc<dyn MovieProfileRepository>,
pub watch_event_command: Arc<dyn WatchEventCommand>,
pub watch_event_query: Arc<dyn WatchEventQuery>,
pub _watch_event_query: Arc<dyn WatchEventQuery>,
pub person_command: Arc<dyn PersonCommand>,
pub person_query: Arc<dyn PersonQuery>,
pub search_command: Arc<dyn SearchCommand>,
@@ -60,7 +60,7 @@ pub async fn connect(database_url: &str, backend: &str) -> anyhow::Result<Worker
import_session: w.import_session,
movie_profile: w.movie_profile,
watch_event_command: we.clone() as _,
watch_event_query: we as _,
_watch_event_query: we as _,
person_command,
person_query,
search_command,
@@ -99,7 +99,7 @@ pub async fn connect(database_url: &str, backend: &str) -> anyhow::Result<Worker
import_session: w.import_session,
movie_profile: w.movie_profile,
watch_event_command: we.clone() as _,
watch_event_query: we as _,
_watch_event_query: we as _,
person_command,
person_query,
search_command,

View File

@@ -83,7 +83,6 @@ async fn main() -> anyhow::Result<()> {
let import_session = db.import_session;
let movie_profile = db.movie_profile;
let watch_event_command = db.watch_event_command;
let watch_event_query = db.watch_event_query;
let person_command = db.person_command;
let person_query = db.person_query;
let search_command = db.search_command;