diff --git a/src/dl/spawn.rs b/src/dl/spawn.rs index 5d63155..c02e070 100644 --- a/src/dl/spawn.rs +++ b/src/dl/spawn.rs @@ -98,9 +98,9 @@ pub async fn spawn_pipe( #[cfg(test)] mod tests { - use std::fs; use crate::dl::spawn::{spawn_pipe, SpawnError}; use crate::dl::tmpfile::TmpFile; + use std::fs; #[tokio::test] async fn test_spawn_pipe() { @@ -122,8 +122,8 @@ mod tests { if let Err(e) = result { match e { SpawnError::ErrorMessage(msg) => assert_eq!("stderr test", msg), - _ => panic!("SpawnError is not ErrorMessage!") + _ => panic!("SpawnError is not ErrorMessage!"), } } } -} \ No newline at end of file +} diff --git a/src/dl/yt_dlp.rs b/src/dl/yt_dlp.rs index 1479aa9..f20b608 100644 --- a/src/dl/yt_dlp.rs +++ b/src/dl/yt_dlp.rs @@ -258,7 +258,7 @@ impl YtDlp { "--force-overwrites", "--no-exec", ], - &file + &file, ) .await?;