Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 27bb689

Browse files
committed
fix clippy::redundant_clone: remove redundant clones
1 parent fb975cd commit 27bb689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_session/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<'a> FileSearch<'a> {
9898
p.push(RUST_LIB_DIR);
9999
p.push(&self.triple);
100100
p.push("bin");
101-
if self_contained { vec![p.clone(), p.join("self-contained")] } else { vec![p.clone()] }
101+
if self_contained { vec![p.clone(), p.join("self-contained")] } else { vec![p] }
102102
}
103103
}
104104

0 commit comments

Comments
 (0)