diff options
-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(()) } |