mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Rm unnecessary clone
in install_from_package
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1eedae1ee2
commit
3b82e9e375
1 changed files with 2 additions and 2 deletions
|
@ -651,7 +651,7 @@ async fn install_from_package(
|
|||
}
|
||||
}
|
||||
|
||||
let bins: BTreeSet<String> = bin_files.iter().map(|bin| bin.base_name.clone()).collect();
|
||||
let bins: BTreeSet<String> = bin_files.into_iter().map(|bin| bin.base_name).collect();
|
||||
|
||||
{
|
||||
debug!("Writing .crates.toml");
|
||||
|
@ -664,7 +664,7 @@ async fn install_from_package(
|
|||
debug!("Writing .crates2.json");
|
||||
let mut c2 = metafiles::v2::Crates2Json::load().unwrap_or_default();
|
||||
c2.insert(
|
||||
cvs.clone(),
|
||||
cvs,
|
||||
metafiles::v2::CrateInfo {
|
||||
version_req: Some(version),
|
||||
bins,
|
||||
|
|
Loading…
Add table
Reference in a new issue