diff options
| author | Samuel Perrouault <samuel.perrouault@gmail.com> | 2025-03-26 12:09:17 +0100 |
|---|---|---|
| committer | Samuel Perrouault <samuel.perrouault@gmail.com> | 2025-03-26 12:09:17 +0100 |
| commit | e01b753e1c165db363cfef0008f4b2c7011fdd86 (patch) | |
| tree | 5c78c54c7af5107e8c056aa902192db51a6326aa | |
| parent | 32952feaf28be3d563771b05b06ca1ad3c68a76e (diff) | |
replace skip>next with nth
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 82374b0..7a707d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::{fs::File, io::BufReader}; mod chip8; fn main() -> std::io::Result<()> { - if let Some(arg) = std::env::args().skip(1).next() { + if let Some(arg) = std::env::args().nth(1) { let mut chip8 = chip8::Chip8::new(); { let file = File::open(arg)?; |
