diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:32:23 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:32:23 +0100 |
commit | 761a780499eeb6afe93b55b06d9df5c75aa9d7cc (patch) | |
tree | 967d6868c8ef69db7edb74b1a9dc499cac5fa171 | |
parent | fix(yt/main): Actually remove the `yt check output-info-json` (diff) | |
download | yt-761a780499eeb6afe93b55b06d9df5c75aa9d7cc.zip |
fix(yt/main): Call `watch` with the required `Arc<App>`
-rw-r--r-- | yt/src/main.rs | 4 |
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(()) } |