mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
nice: simplify the code
This commit is contained in:
committed by
Etienne Cordonnier
parent
2916d2b83f
commit
d97bc73ea9
@@ -163,7 +163,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
|
||||
let err = process::Command::new(cmd).args(args).exec();
|
||||
|
||||
show_error!("{}: {}", cmd, err);
|
||||
show_error!("{cmd}: {err}");
|
||||
|
||||
let exit_code = if err.kind() == ErrorKind::NotFound {
|
||||
127
|
||||
|
||||
Reference in New Issue
Block a user