Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
remove name from download trait
Browse files Browse the repository at this point in the history
  • Loading branch information
TOwInOK committed May 1, 2024
1 parent 96c56c8 commit 8c73ec2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/settings/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl Core {
}
}
pb.set_message("Downloading...");
let file = Core::get_file(self.provider.as_str().to_string(), link, hash, &pb).await?;
let file = Core::get_file(link, hash, &pb).await?;
pb.set_message("Start download");
Core::save_bytes(file, self.provider().as_str()).await?;
*lock.core_mut() = self.clone().to_meta(build);
Expand Down
2 changes: 1 addition & 1 deletion src/settings/extensions/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Plugins {
// get lock
let mut lock = lock.lock().await;
// get file
let file = Plugin::get_file(name.to_owned(), link, hash, &pb).await?;
let file = Plugin::get_file(link, hash, &pb).await?;
pb.set_message("Remove exist version");
//delete prevision item
lock.remove_plugin(&name)?;
Expand Down
1 change: 0 additions & 1 deletion src/tr/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use indicatif::ProgressBar;
use super::hash::ChooseHash;
pub trait Download {
fn get_file(
name: String,
link: String,
hash: ChooseHash,
pb: &ProgressBar,
Expand Down

0 comments on commit 8c73ec2

Please sign in to comment.