mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +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()
|
||||
);
|
||||
|
||||
// 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(
|
||||
binaries,
|
||||
fetcher.as_ref(),
|
||||
|
@ -308,7 +302,6 @@ async fn entry() -> Result<()> {
|
|||
meta,
|
||||
opts,
|
||||
package,
|
||||
pkg_path,
|
||||
temp_dir,
|
||||
)
|
||||
.await
|
||||
|
@ -337,7 +330,6 @@ async fn install_from_package(
|
|||
mut meta: PkgMeta,
|
||||
opts: Options,
|
||||
package: Package<Meta>,
|
||||
pkg_path: PathBuf,
|
||||
temp_dir: TempDir,
|
||||
) -> Result<()> {
|
||||
// Prompt user for third-party source
|
||||
|
|
Loading…
Add table
Reference in a new issue