diff options
author | 2022-01-23 18:32:03 +0000 | |
---|---|---|
committer | 2022-01-23 18:32:03 +0000 | |
commit | 08111803edae11ab0fa4d0f287a865f434f4c12c (patch) | |
tree | b00e66deef005f0fcc57e997bfd5c7ed8bc3857e /xtask/src/main.rs | |
parent | c350114d8002d91bd71d08e7ad6ee2e960c2ed35 (diff) | |
parent | 000279dd5984e7f1de90c9225ddafdaea61ed0cb (diff) | |
download | cortex-m-08111803edae11ab0fa4d0f287a865f434f4c12c.tar.gz cortex-m-08111803edae11ab0fa4d0f287a865f434f4c12c.tar.zst cortex-m-08111803edae11ab0fa4d0f287a865f434f4c12c.zip |
Merge #415
415: Fix most clippy lints r=adamgreig a=newAM
This fixes all clippy lints that do not result in a user-visible change, and result in valid code for the 1.40 MSRV.
Co-authored-by: Alex Martens <alex@thinglab.org>
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(), |