File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1007,7 +1007,7 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
1007
1007
libc:: setgroups ( groups. len ( ) as setgroups_ngroups_t , groups. as_ptr ( ) as * const gid_t )
1008
1008
} ;
1009
1009
1010
- Errno :: result ( res) . map ( drop )
1010
+ Errno :: result ( res) . map ( |_| ( ) )
1011
1011
}
1012
1012
1013
1013
/// Calculate the supplementary group access list. Gets the group IDs of all
@@ -1090,14 +1090,14 @@ pub fn initgroups(user: &CString, group: Gid) -> Result<()> {
1090
1090
let gid: gid_t = group. into ( ) ;
1091
1091
let res = unsafe { libc:: initgroups ( user. as_ptr ( ) , gid as initgroups_group_t ) } ;
1092
1092
1093
- Errno :: result ( res) . map ( drop )
1093
+ Errno :: result ( res) . map ( |_| ( ) )
1094
1094
}
1095
1095
1096
1096
#[ inline]
1097
1097
pub fn pause ( ) -> Result < ( ) > {
1098
1098
let res = unsafe { libc:: pause ( ) } ;
1099
1099
1100
- Errno :: result ( res) . map ( drop )
1100
+ Errno :: result ( res) . map ( |_| ( ) )
1101
1101
}
1102
1102
1103
1103
#[ inline]
You can’t perform that action at this time.
0 commit comments