mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
remove clones
This commit is contained in:
parent
66cec4d11a
commit
ac9d1a03a7
2 changed files with 2 additions and 2 deletions
|
@ -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() {
|
if mb == Some(MergeBehavior::One) && use_tree.path().is_some() {
|
||||||
use_tree = use_tree.clone_for_update();
|
use_tree = use_tree.clone_for_update();
|
||||||
use_tree.wrap_in_tree_list();
|
use_tree.wrap_in_tree_list();
|
||||||
|
|
|
@ -1455,7 +1455,7 @@ fn sysroot_to_crate_graph(
|
||||||
(SysrootPublicDeps { deps: pub_deps }, libproc_macro)
|
(SysrootPublicDeps { deps: pub_deps }, libproc_macro)
|
||||||
}
|
}
|
||||||
SysrootMode::Stitched(stitched) => {
|
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
|
let sysroot_crates: FxHashMap<SysrootCrate, CrateId> = stitched
|
||||||
.crates()
|
.crates()
|
||||||
.filter_map(|krate| {
|
.filter_map(|krate| {
|
||||||
|
|
Loading…
Reference in a new issue