remove clones

This commit is contained in:
Matthias Krüger 2024-02-05 23:15:47 +01:00
parent 66cec4d11a
commit ac9d1a03a7
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| {