diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/lib.rs | 4 | ||||
-rw-r--r-- | xtask/src/main.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index ddbb88b..f6a57b3 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -232,7 +232,7 @@ pub fn check_host_side() { { let a = VectActive::from(19).unwrap(); let b = VectActive::from(20).unwrap(); - assert_eq!(a < b, true); + assert!(a < b); } // check TryFrom @@ -240,7 +240,7 @@ pub fn check_host_side() { use core::convert::TryInto; use std::convert::TryFrom; - let lts: LocalTimestampOptions = (16 as u8).try_into().unwrap(); + let lts: LocalTimestampOptions = (16_u8).try_into().unwrap(); assert_eq!(lts, LocalTimestampOptions::EnabledDiv16); assert!(LocalTimestampOptions::try_from(42).is_err()); 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(), |