mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Rewrite untar
: Takes a filter
fn instead of array
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a681f3a156
commit
1d139324c7
6 changed files with 55 additions and 48 deletions
|
@ -43,7 +43,7 @@ impl super::Fetcher for GhCrateMeta {
|
|||
async fn fetch_and_extract(&self, dst: &Path) -> Result<(), BinstallError> {
|
||||
let url = self.url()?;
|
||||
info!("Downloading package from: '{url}'");
|
||||
download_and_extract::<_, 0>(url, self.pkg_fmt(), dst, None).await
|
||||
download_and_extract::<fn(&Path) -> bool, _>(url, self.pkg_fmt(), dst, None).await
|
||||
}
|
||||
|
||||
fn pkg_fmt(&self) -> PkgFmt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue