mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
refactor/polish ~ fix cargo clippy
complaints (allow useless_let_if_seq)
This commit is contained in:
parent
d82a170351
commit
082f9520b2
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,8 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
|
||||
let mut assumptions = true;
|
||||
|
||||
#[allow(clippy::useless_let_if_seq)]
|
||||
{
|
||||
if matches.opt_present("a") {
|
||||
need_boottime = true;
|
||||
need_deadprocs = true;
|
||||
|
@ -202,6 +204,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
disp_err!("{}", msg_wrong_number_of_arguments!());
|
||||
exit!(1);
|
||||
}
|
||||
}
|
||||
|
||||
let mut who = Who {
|
||||
do_lookup,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue