mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-16 17:00:02 +00:00
Rewrite untar
to take a visitor & simplify
signature of `download_and_extract_with_filter` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5a43ee2681
commit
90a96cabc9
4 changed files with 64 additions and 38 deletions
src
|
@ -92,7 +92,7 @@ pub async fn download_and_extract_with_filter<
|
|||
url: Url,
|
||||
fmt: TarBasedFmt,
|
||||
path: P,
|
||||
filter: Option<Filter>,
|
||||
filter: Filter,
|
||||
) -> Result<(), BinstallError> {
|
||||
debug!("Downloading from: '{url}'");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue