mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Rm unused param pkg_path
in install_from_package
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1879a719e4
commit
728d1fd6dd
1 changed files with 0 additions and 8 deletions
|
@ -295,12 +295,6 @@ async fn entry() -> Result<()> {
|
||||||
fetcher.source_name()
|
fetcher.source_name()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Compute temporary directory for downloads
|
|
||||||
let pkg_path = temp_dir
|
|
||||||
.path()
|
|
||||||
.join(format!("pkg-{}.{}", opts.name, meta.pkg_fmt));
|
|
||||||
debug!("Using temporary download path: {}", pkg_path.display());
|
|
||||||
|
|
||||||
install_from_package(
|
install_from_package(
|
||||||
binaries,
|
binaries,
|
||||||
fetcher.as_ref(),
|
fetcher.as_ref(),
|
||||||
|
@ -308,7 +302,6 @@ async fn entry() -> Result<()> {
|
||||||
meta,
|
meta,
|
||||||
opts,
|
opts,
|
||||||
package,
|
package,
|
||||||
pkg_path,
|
|
||||||
temp_dir,
|
temp_dir,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
|
@ -337,7 +330,6 @@ async fn install_from_package(
|
||||||
mut meta: PkgMeta,
|
mut meta: PkgMeta,
|
||||||
opts: Options,
|
opts: Options,
|
||||||
package: Package<Meta>,
|
package: Package<Meta>,
|
||||||
pkg_path: PathBuf,
|
|
||||||
temp_dir: TempDir,
|
temp_dir: TempDir,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
// Prompt user for third-party source
|
// Prompt user for third-party source
|
||||||
|
|
Loading…
Add table
Reference in a new issue