about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2018-10-26 03:11:11 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2018-10-26 12:07:39 +0900
commit3878d24ef6922c133539fe67e0c907166f6261cb (patch)
treefb2b6e405d7b06be2b586684fd857e2b7069a44f /src/bootstrap
parent7b0735a832dd49cb482084590eb0f2577955c079 (diff)
downloadrust-3878d24ef6922c133539fe67e0c907166f6261cb.tar.gz
rust-3878d24ef6922c133539fe67e0c907166f6261cb.zip
Remove redundant clone
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/dist.rs4
-rw-r--r--src/bootstrap/test.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 4de899ee2d5..fea6302d0a1 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -1447,8 +1447,8 @@ impl Step for Extended {
         tarballs.extend(rls_installer.clone());
         tarballs.extend(clippy_installer.clone());
         tarballs.extend(rustfmt_installer.clone());
-        tarballs.extend(llvm_tools_installer.clone());
-        tarballs.extend(lldb_installer.clone());
+        tarballs.extend(llvm_tools_installer);
+        tarballs.extend(lldb_installer);
         tarballs.push(analysis_installer);
         tarballs.push(std_installer);
         if builder.config.docs {
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index fe04a91011e..f6032eb9931 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1052,7 +1052,7 @@ impl Step for Compiletest {
         let hostflags = flags.clone();
         cmd.arg("--host-rustcflags").arg(hostflags.join(" "));
 
-        let mut targetflags = flags.clone();
+        let mut targetflags = flags;
         targetflags.push(format!(
             "-Lnative={}",
             builder.test_helpers_out(target).display()