Skip to content

Commit

Permalink
Merge pull request #6772 from lcheylus/openbsd-users-clippy
Browse files Browse the repository at this point in the history
users: fix lint error manual_unwrap_or_default on OpenBSD
  • Loading branch information
sylvestre authored Oct 7, 2024
2 parents 43d9944 + c7cce2d commit fae477b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/users/src/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fae477b

Please sign in to comment.