Skip to content

Commit

Permalink
Remove redundant field name
Browse files Browse the repository at this point in the history
  • Loading branch information
takonomura committed Mar 6, 2023
1 parent 2fa0ab4 commit b9294eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl InitgroupsHooks for JsonFileInitgroups {
Some(u) => u,
};
let groups_by_passwd = u.groups.unwrap_or_default().into_iter().map(|gid| Group {
gid: gid,
gid,
// Following fields is not used in initgroups
name: "".to_string(),
passwd: "".to_string(),
Expand Down

0 comments on commit b9294eb

Please sign in to comment.