mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
Merge #9415
9415: minor: Avoid redundant clone r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
36a49e5da4
@ -248,7 +248,7 @@ impl ProjectWorkspace {
|
||||
.filter(|&&tgt| cargo[tgt].kind == TargetKind::Lib)
|
||||
.filter_map(|&tgt| cargo[tgt].root.parent())
|
||||
.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);
|
||||
|
||||
let mut exclude = vec![pkg_root.join(".git")];
|
||||
|
Loading…
Reference in New Issue
Block a user