about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-12-11 17:49:00 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-12-11 23:02:19 +0100
commitdb6c50998c929c9bab5ea2ffdddf5e0eef25d3c8 (patch)
treef5c29a089c9fe2d43affb6cc3a5c18f7f50a1b65 /src/bootstrap
parent82fe5c16622051a71a37c9c4909dd1f4e0857584 (diff)
downloadrust-db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8.tar.gz
rust-db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8.zip
don't clone types that are copy (clippy::clone_on_copy)
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/sanity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index 4cfcf6ca407..aafb71629ad 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -162,7 +162,7 @@ pub fn check(build: &mut Build) {
         build
             .config
             .target_config
-            .entry(target.clone())
+            .entry(*target)
             .or_insert(Target::from_triple(&target.triple));
 
         if target.contains("-none-") || target.contains("nvptx") {
@@ -176,7 +176,7 @@ pub fn check(build: &mut Build) {
             // If this is a native target (host is also musl) and no musl-root is given,
             // fall back to the system toolchain in /usr before giving up
             if build.musl_root(*target).is_none() && build.config.build == *target {
-                let target = build.config.target_config.entry(target.clone()).or_default();
+                let target = build.config.target_config.entry(*target).or_default();
                 target.musl_root = Some("/usr".into());
             }
             match build.musl_libdir(*target) {