mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +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…
Add table
Add a link
Reference in a new issue