mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Rm unused param temp_dir
from install_from_package
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1ebd4bdb75
commit
1eedae1ee2
1 changed files with 3 additions and 14 deletions
17
src/main.rs
17
src/main.rs
|
@ -286,7 +286,6 @@ async fn entry(jobserver_client: jobserver::Client) -> Result<()> {
|
|||
tokio::spawn(install(
|
||||
resolution,
|
||||
opts.clone(),
|
||||
temp_dir_path.clone(),
|
||||
desired_targets.clone(),
|
||||
jobserver_client.clone(),
|
||||
))
|
||||
|
@ -312,20 +311,13 @@ async fn entry(jobserver_client: jobserver::Client) -> Result<()> {
|
|||
crate_name,
|
||||
desired_targets.clone(),
|
||||
cli_overrides,
|
||||
temp_dir_path.clone(),
|
||||
temp_dir_path,
|
||||
install_path,
|
||||
client,
|
||||
)
|
||||
.await?;
|
||||
|
||||
install(
|
||||
resolution,
|
||||
opts,
|
||||
temp_dir_path,
|
||||
desired_target,
|
||||
jobserver_client,
|
||||
)
|
||||
.await
|
||||
install(resolution, opts, desired_target, jobserver_client).await
|
||||
})
|
||||
})
|
||||
.collect()
|
||||
|
@ -563,7 +555,6 @@ fn collect_bin_files(
|
|||
async fn install(
|
||||
resolution: Resolution,
|
||||
opts: Arc<Options>,
|
||||
temp_dir: Arc<Path>,
|
||||
desired_targets: DesiredTargets,
|
||||
jobserver_client: jobserver::Client,
|
||||
) -> Result<()> {
|
||||
|
@ -582,7 +573,7 @@ async fn install(
|
|||
source: metafiles::Source::cratesio_registry(),
|
||||
};
|
||||
|
||||
install_from_package(fetcher, opts, cvs, temp_dir, version, bin_path, bin_files).await
|
||||
install_from_package(fetcher, opts, cvs, version, bin_path, bin_files).await
|
||||
}
|
||||
Resolution::InstallFromSource { package } => {
|
||||
let desired_targets = desired_targets.get().await;
|
||||
|
@ -603,12 +594,10 @@ async fn install(
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unused, clippy::too_many_arguments)]
|
||||
async fn install_from_package(
|
||||
fetcher: Arc<dyn Fetcher>,
|
||||
opts: Arc<Options>,
|
||||
cvs: metafiles::CrateVersionSource,
|
||||
temp_dir: Arc<Path>,
|
||||
version: String,
|
||||
bin_path: PathBuf,
|
||||
bin_files: Vec<bins::BinFile>,
|
||||
|
|
Loading…
Add table
Reference in a new issue