Auto merge of #16496 - matthiaskrgr:c, r=lnicola

minor: remove clones
This commit is contained in:
bors 2024-02-06 06:47:13 +00:00
commit 64411a4ea3
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ fn insert_use_with_alias_option(
};
}
let mut use_tree = make::use_tree(path.clone(), None, alias, false);
let mut use_tree = make::use_tree(path, None, alias, false);
if mb == Some(MergeBehavior::One) && use_tree.path().is_some() {
use_tree = use_tree.clone_for_update();
use_tree.wrap_in_tree_list();

View File

@ -1455,7 +1455,7 @@ fn sysroot_to_crate_graph(
(SysrootPublicDeps { deps: pub_deps }, libproc_macro)
}
SysrootMode::Stitched(stitched) => {
let cfg_options = create_cfg_options(rustc_cfg.clone());
let cfg_options = create_cfg_options(rustc_cfg);
let sysroot_crates: FxHashMap<SysrootCrate, CrateId> = stitched
.crates()
.filter_map(|krate| {