Skip to content

Commit b9294eb

Browse files
committed
Remove redundant field name
To suppress following clippy's warning: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
1 parent 2fa0ab4 commit b9294eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl InitgroupsHooks for JsonFileInitgroups {
186186
Some(u) => u,
187187
};
188188
let groups_by_passwd = u.groups.unwrap_or_default().into_iter().map(|gid| Group {
189-
gid: gid,
189+
gid,
190190
// Following fields is not used in initgroups
191191
name: "".to_string(),
192192
passwd: "".to_string(),

0 commit comments

Comments
 (0)