Skip to content

Commit ba86f7b

Browse files
committed
Resolve more clippy lints.
1 parent cba1178 commit ba86f7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xtask/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,6 @@ pub fn check_host_side() {
235235
{
236236
let a = VectActive::from(19).unwrap();
237237
let b = VectActive::from(20).unwrap();
238-
assert_eq!(a < b, true);
238+
assert!(a < b);
239239
}
240240
}

xtask/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::{env, process};
22
use xtask::{assemble_blobs, check_blobs, check_host_side};
33

44
fn main() {
5-
let subcommand = env::args().skip(1).next();
6-
match subcommand.as_ref().map(|s| &**s) {
5+
let subcommand = env::args().nth(1);
6+
match subcommand.as_deref() {
77
Some("assemble") => assemble_blobs(),
88
Some("check-blobs") => check_blobs(),
99
Some("check-host-side") => check_host_side(),

0 commit comments

Comments
 (0)