Skip to content

Commit 9ea3550

Browse files
committed
wall: get mac to infer correct type
1 parent 8f1f189 commit 9ea3550

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/uu/wall/src/wall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

tests/by-util/test_wall.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)