Simplify extract_compressed_from_readable impl

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-11 20:16:41 +10:00
parent 57b40d809e
commit 5a43ee2681
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 10 additions and 10 deletions

View file

@ -219,7 +219,7 @@ where
extract_impl(stream, move |mut rx| {
fs::create_dir_all(path.parent().unwrap())?;
extract_compressed_from_readable(ReadableRx::new(&mut rx), fmt.into(), &path, filter)
extract_compressed_from_readable(ReadableRx::new(&mut rx), fmt, &path, filter)
})
.await
}
@ -239,7 +239,7 @@ where
extract_compressed_from_readable::<fn(&Path) -> bool, _>(
ReadableRx::new(&mut rx),
fmt.into(),
fmt,
&path,
None,
)