mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 23:56:37 +00:00
Use pkg_fmt from fetcher
This commit is contained in:
parent
a12e934940
commit
99e5de0025
4 changed files with 17 additions and 4 deletions
|
@ -4,7 +4,7 @@ use log::info;
|
|||
use reqwest::Method;
|
||||
|
||||
use super::Data;
|
||||
use crate::{download, remote_exists};
|
||||
use crate::{download, remote_exists, PkgFmt};
|
||||
|
||||
pub struct QuickInstall {
|
||||
url: String,
|
||||
|
@ -28,4 +28,8 @@ impl super::Fetcher for QuickInstall {
|
|||
info!("Downloading package from: '{}'", self.url);
|
||||
download(&self.url, dst).await
|
||||
}
|
||||
|
||||
fn pkg_fmt(&self) -> PkgFmt {
|
||||
PkgFmt::Tgz
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue