Skip to content

Commit 64411a4

Browse files
committed
Auto merge of rust-lang#16496 - matthiaskrgr:c, r=lnicola
minor: remove clones
2 parents 66cec4d + ac9d1a0 commit 64411a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/ide-db/src/imports/insert_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fn insert_use_with_alias_option(
214214
};
215215
}
216216

217-
let mut use_tree = make::use_tree(path.clone(), None, alias, false);
217+
let mut use_tree = make::use_tree(path, None, alias, false);
218218
if mb == Some(MergeBehavior::One) && use_tree.path().is_some() {
219219
use_tree = use_tree.clone_for_update();
220220
use_tree.wrap_in_tree_list();

crates/project-model/src/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ fn sysroot_to_crate_graph(
14551455
(SysrootPublicDeps { deps: pub_deps }, libproc_macro)
14561456
}
14571457
SysrootMode::Stitched(stitched) => {
1458-
let cfg_options = create_cfg_options(rustc_cfg.clone());
1458+
let cfg_options = create_cfg_options(rustc_cfg);
14591459
let sysroot_crates: FxHashMap<SysrootCrate, CrateId> = stitched
14601460
.crates()
14611461
.filter_map(|krate| {

0 commit comments

Comments
 (0)