mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Avoid redundant clone
This commit is contained in:
parent
1fa82adfdc
commit
cc54d2bbc6
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ impl ProjectWorkspace {
|
||||||
.filter(|&&tgt| cargo[tgt].kind == TargetKind::Lib)
|
.filter(|&&tgt| cargo[tgt].kind == TargetKind::Lib)
|
||||||
.filter_map(|&tgt| cargo[tgt].root.parent())
|
.filter_map(|&tgt| cargo[tgt].root.parent())
|
||||||
.map(|tgt| tgt.normalize().to_path_buf())
|
.map(|tgt| tgt.normalize().to_path_buf())
|
||||||
.filter(|path| !path.starts_with(pkg_root.clone()));
|
.filter(|path| !path.starts_with(&pkg_root));
|
||||||
include.extend(extra_targets);
|
include.extend(extra_targets);
|
||||||
|
|
||||||
let mut exclude = vec![pkg_root.join(".git")];
|
let mut exclude = vec![pkg_root.join(".git")];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue