]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/config.rs
bootstrap: fix a couple of clippy lint warnings
[rust.git] / src / bootstrap / config.rs
index 70b1c471ac3f0e6f11efc24d4d0b17a17a081354..8b8b01b11532731342b1413a0adcf86fb219252a 100644 (file)
@@ -527,7 +527,7 @@ pub fn parse(args: &[String]) -> Config {
 
         let build = toml.build.clone().unwrap_or_default();
         // set by bootstrap.py
-        config.hosts.push(config.build.clone());
+        config.hosts.push(config.build);
         for host in build.host.iter().map(|h| TargetSelection::from_user(h)) {
             if !config.hosts.contains(&host) {
                 config.hosts.push(host);