From 761a780499eeb6afe93b55b06d9df5c75aa9d7cc Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 22 Feb 2025 11:32:23 +0100 Subject: fix(yt/main): Call `watch` with the required `Arc` --- yt/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt/src/main.rs b/yt/src/main.rs index 9fee4cc..ba87f3f 100644 --- a/yt/src/main.rs +++ b/yt/src/main.rs @@ -203,7 +203,7 @@ async fn main() -> Result<()> { } }, - Command::Watch {} => watch::watch(&app).await?, + Command::Watch {} => watch::watch(Arc::new(app)).await?, Command::Status {} => status::show(&app).await?, Command::Config {} => status::config(&app)?, @@ -248,7 +248,7 @@ async fn dowa(arc_app: Arc) -> Result<()> { Ok(()) }); - watch::watch(&arc_app).await?; + watch::watch(arc_app).await?; download.await??; Ok(()) } -- cgit 1.4.1