about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-09-03 12:36:33 +0200
committerMara Bos <m-ou.se@m-ou.se>2021-12-04 19:40:33 +0100
commite05ad7f8199f0da52892d96f37c72581f1f56e87 (patch)
tree21aad3cddab911e043b20943082f37eee417c71b /scripts
parentdd3cb0cd7513353464454d5f3da3ece03bd22f78 (diff)
downloadrust-e05ad7f8199f0da52892d96f37c72581f1f56e87.tar.gz
rust-e05ad7f8199f0da52892d96f37c72581f1f56e87.zip
Use IntoIterator for array impl everywhere.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cargo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cargo.rs b/scripts/cargo.rs
index 89ec8da77d3..41d82b581cd 100644
--- a/scripts/cargo.rs
+++ b/scripts/cargo.rs
@@ -42,7 +42,7 @@ fn main() {
                 "RUSTFLAGS",
                 env::var("RUSTFLAGS").unwrap_or(String::new()) + " -Cprefer-dynamic",
             );
-            std::array::IntoIter::new(["rustc".to_string()])
+            IntoIterator::into_iter(["rustc".to_string()])
                 .chain(env::args().skip(2))
                 .chain([
                     "--".to_string(),
@@ -56,7 +56,7 @@ fn main() {
                 "RUSTFLAGS",
                 env::var("RUSTFLAGS").unwrap_or(String::new()) + " -Cprefer-dynamic",
             );
-            std::array::IntoIter::new(["rustc".to_string()])
+            IntoIterator::into_iter(["rustc".to_string()])
                 .chain(env::args().skip(2))
                 .chain([
                     "--".to_string(),