mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
refactor/polish ~ fix cargo clippy
complaints (unwrap_or_else)
This commit is contained in:
parent
b4866afb9a
commit
daecc56d47
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ fn pretty(possible_pw: Option<Passwd>) {
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||||
fn pline(possible_uid: Option<uid_t>) {
|
fn pline(possible_uid: Option<uid_t>) {
|
||||||
let uid = possible_uid.unwrap_or(getuid());
|
let uid = possible_uid.unwrap_or_else(getuid);
|
||||||
let pw = Passwd::locate(uid).unwrap();
|
let pw = Passwd::locate(uid).unwrap();
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
|
|
Loading…
Reference in a new issue