diff options
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 3e4b394..26dce31 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -2,8 +2,8 @@ use std::{env, process}; use xtask::{assemble_blobs, check_blobs, check_host_side}; fn main() { - let subcommand = env::args().skip(1).next(); - match subcommand.as_ref().map(|s| &**s) { + let subcommand = env::args().nth(1); + match subcommand.as_deref() { Some("assemble") => assemble_blobs(), Some("check-blobs") => check_blobs(), Some("check-host-side") => check_host_side(), |