aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-22 11:32:23 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-22 11:32:23 +0100
commit761a780499eeb6afe93b55b06d9df5c75aa9d7cc (patch)
tree967d6868c8ef69db7edb74b1a9dc499cac5fa171
parentfix(yt/main): Actually remove the `yt check output-info-json` (diff)
downloadyt-761a780499eeb6afe93b55b06d9df5c75aa9d7cc.zip
fix(yt/main): Call `watch` with the required `Arc<App>`
Diffstat (limited to '')
-rw-r--r--yt/src/main.rs4
1 files 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<App>) -> Result<()> {
Ok(())
});
- watch::watch(&arc_app).await?;
+ watch::watch(arc_app).await?;
download.await??;
Ok(())
}