File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ fn is_gr_member(user: &[c_char], gid: gid_t) -> bool {
317317
318318 // otherwise check gid is in list of supplementary groups user belongs to
319319 let mut ngroups = 16 ;
320- let mut groups: Vec < gid_t > = vec ! [ 0 ; ngroups as usize ] ;
320+ let mut groups: Vec < _ > = vec ! [ 0 ; ngroups as usize ] ;
321321 while unsafe {
322322 libc:: getgrouplist (
323323 user. as_ptr ( ) ,
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ mod tests {
33 use uutests:: new_ucmd;
44
55 #[ test]
6- fn test_invalid_arg ( ) { new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails ( ) . code_is ( 1 ) ; }
6+ fn test_invalid_arg ( ) {
7+ new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails ( ) . code_is ( 1 ) ;
8+ }
79
810 #[ test]
911 fn test_fails_on_invalid_group ( ) {
@@ -46,5 +48,7 @@ mod tests {
4648 }
4749
4850 #[ test]
49- fn test_succeeds_no_stdout ( ) { new_ucmd ! ( ) . pipe_in ( "pipe me" ) . succeeds ( ) . stdout_is ( "" ) ; }
51+ fn test_succeeds_no_stdout ( ) {
52+ new_ucmd ! ( ) . pipe_in ( "pipe me" ) . succeeds ( ) . stdout_is ( "" ) ;
53+ }
5054}
You can’t perform that action at this time.
0 commit comments