cargo fmt

This commit is contained in:
mykola2312 2024-03-31 19:41:11 +03:00
parent bcbdd4729b
commit 7fc55414ee
2 changed files with 4 additions and 4 deletions

View file

@ -98,9 +98,9 @@ pub async fn spawn_pipe(
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::fs;
use crate::dl::spawn::{spawn_pipe, SpawnError}; use crate::dl::spawn::{spawn_pipe, SpawnError};
use crate::dl::tmpfile::TmpFile; use crate::dl::tmpfile::TmpFile;
use std::fs;
#[tokio::test] #[tokio::test]
async fn test_spawn_pipe() { async fn test_spawn_pipe() {
@ -122,7 +122,7 @@ mod tests {
if let Err(e) = result { if let Err(e) = result {
match e { match e {
SpawnError::ErrorMessage(msg) => assert_eq!("stderr test", msg), SpawnError::ErrorMessage(msg) => assert_eq!("stderr test", msg),
_ => panic!("SpawnError is not ErrorMessage!") _ => panic!("SpawnError is not ErrorMessage!"),
} }
} }
} }

View file

@ -258,7 +258,7 @@ impl YtDlp {
"--force-overwrites", "--force-overwrites",
"--no-exec", "--no-exec",
], ],
&file &file,
) )
.await?; .await?;