Use .next() instead of .nth(0) on iterators.

This commit is contained in:
Matthias Krüger
2020-03-03 01:19:00 +01:00
parent 97b3d81615
commit d3e5177f81
12 changed files with 14 additions and 14 deletions

View File

@@ -147,7 +147,7 @@ fn main() {
eprintln!("Must provide path to write unicode tables to");
eprintln!(
"e.g. {} src/libcore/unicode/unicode_data.rs",
std::env::args().nth(0).unwrap_or_default()
std::env::args().next().unwrap_or_default()
);
std::process::exit(1);
});