mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-13 15:30:03 +00:00
parent
62ec23e6f4
commit
1757dc5344
5 changed files with 52 additions and 33 deletions
|
@ -16,13 +16,13 @@ pub struct QuickInstall {
|
|||
|
||||
#[async_trait::async_trait]
|
||||
impl super::Fetcher for QuickInstall {
|
||||
async fn new(data: &Data) -> Result<Box<Self>, anyhow::Error> {
|
||||
async fn new(data: &Data) -> Box<Self> {
|
||||
let crate_name = &data.name;
|
||||
let version = &data.version;
|
||||
let target = &data.target;
|
||||
Ok(Box::new(Self {
|
||||
Box::new(Self {
|
||||
package: format!("{crate_name}-{version}-{target}"),
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
async fn check(&self) -> Result<bool, anyhow::Error> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue