cargo fmt
This commit is contained in:
parent
bcbdd4729b
commit
7fc55414ee
2 changed files with 4 additions and 4 deletions
|
|
@ -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!"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ impl YtDlp {
|
||||||
"--force-overwrites",
|
"--force-overwrites",
|
||||||
"--no-exec",
|
"--no-exec",
|
||||||
],
|
],
|
||||||
&file
|
&file,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue