mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-26 05:44:26 +00:00
Use IntoIterator for array impl everywhere.
This commit is contained in:
parent
dd3cb0cd75
commit
e05ad7f819
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user