From 07b6663a350f400f20d7fd13b3e4b292b505cfbc Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 2 Nov 2023 06:30:31 -0500 Subject: [PATCH] fmt --- src/rust/ytdl.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rust/ytdl.rs b/src/rust/ytdl.rs index b184bc1..f284729 100644 --- a/src/rust/ytdl.rs +++ b/src/rust/ytdl.rs @@ -28,7 +28,7 @@ mod ytdl { impl qobject::Ytdl { #[qinvokable] - pub fn get_video( + pub fn get_video( mut self: Pin<&mut Self>, url: QUrl, ) -> bool { @@ -46,7 +46,8 @@ mod ytdl { println!("{:?}", data_dir); self.as_mut().set_loading(true); let thread = self.qt_thread(); - let runtime = tokio::runtime::Runtime::new().unwrap(); + let runtime = + tokio::runtime::Runtime::new().unwrap(); runtime.spawn(async move { let url = url.to_string(); let output_dirs = data_dir.to_str().unwrap();