From 728d1fd6dd4790eb0ed9e9068760fa9dc2f9a39d Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 9 Jun 2022 14:47:43 +1000 Subject: [PATCH] Rm unused param `pkg_path` in `install_from_package` Signed-off-by: Jiahao XU --- src/main.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 58460ebb..55ce22bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, - pkg_path: PathBuf, temp_dir: TempDir, ) -> Result<()> { // Prompt user for third-party source