Simplify fetch_crate_cratesio: Rm unused param temp_dir

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 17:09:17 +10:00
parent e39549f470
commit 24b1941c1a
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 2 additions and 3 deletions

View file

@ -215,7 +215,7 @@ async fn entry() -> Result<()> {
debug!("Reading manifest: {}", manifest_path.display());
load_manifest_path(manifest_path.join("Cargo.toml"))?
}
None => fetch_crate_cratesio(&opts.name, &opts.version, temp_dir.path()).await?,
None => fetch_crate_cratesio(&opts.name, &opts.version).await?,
};
let package = manifest.package.unwrap();