mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-17 01:10:02 +00:00
Refactor: Extract download_and_extract_with_filter
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1d139324c7
commit
62be22256b
4 changed files with 18 additions and 6 deletions
src
|
@ -110,7 +110,7 @@ pub async fn fetch_crate_cratesio(
|
|||
let main = src.join("main.rs");
|
||||
let bin = src.join("bin");
|
||||
|
||||
download_and_extract(
|
||||
download_and_extract_with_filter(
|
||||
Url::parse(&crate_url)?,
|
||||
PkgFmt::Tgz,
|
||||
&temp_dir,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue