1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

users: fix lint error manual_unwrap_or_default on OpenBSD

Fix uutils/coreutils#6771

Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2024-10-07 17:32:35 +02:00
parent 43d9944f04
commit c7cce2df37
No known key found for this signature in database

View file

@ -51,7 +51,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
#[cfg(target_os = "openbsd")]
{
let filename = maybe_file.unwrap_or(Path::new(OPENBSD_UTMP_FILE));
let entries = parse_from_path(filename).unwrap_or(Vec::new());
let entries = parse_from_path(filename).unwrap_or_default();
users = Vec::new();
for entry in entries {
if let UtmpEntry::UTMP {