1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

refactor/polish ~ fix cargo clippy complaints (allow useless_let_if_seq)

This commit is contained in:
Roy Ivy III 2019-12-29 21:41:07 -06:00
parent d82a170351
commit 082f9520b2

View file

@ -128,6 +128,8 @@ pub fn uumain(args: Vec<String>) -> i32 {
let mut assumptions = true; let mut assumptions = true;
#[allow(clippy::useless_let_if_seq)]
{
if matches.opt_present("a") { if matches.opt_present("a") {
need_boottime = true; need_boottime = true;
need_deadprocs = true; need_deadprocs = true;
@ -202,6 +204,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
disp_err!("{}", msg_wrong_number_of_arguments!()); disp_err!("{}", msg_wrong_number_of_arguments!());
exit!(1); exit!(1);
} }
}
let mut who = Who { let mut who = Who {
do_lookup, do_lookup,