mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-02 02:00:03 +00:00
Simplify extract_compressed_from_readable
impl
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
57b40d809e
commit
5a43ee2681
2 changed files with 10 additions and 10 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue