Skip to content

Commit 3b167f3

Browse files
committed
Remove bindings of the unit type
1 parent 5992e60 commit 3b167f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/socket.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1218,10 +1218,10 @@ fn join_leave_multicast_v4_n() {
12181218
assert_eq!(err.raw_os_error(), Some(libc::EADDRNOTAVAIL));
12191219
}
12201220
};
1221-
let () = socket
1221+
socket
12221222
.join_multicast_v4_n(&multiaddr, &interface)
12231223
.expect("join multicast group");
1224-
let () = socket
1224+
socket
12251225
.leave_multicast_v4_n(&multiaddr, &interface)
12261226
.expect("leave multicast group");
12271227
}
@@ -1238,8 +1238,8 @@ fn join_leave_ssm_v4() {
12381238
let g = Ipv4Addr::new(232, 123, 52, 36);
12391239
let s = Ipv4Addr::new(62, 40, 109, 31);
12401240
let interface = Ipv4Addr::new(0, 0, 0, 0);
1241-
let () = socket.join_ssm_v4(&s, &g, &interface).expect("Joined SSM");
1242-
let () = socket.leave_ssm_v4(&s, &g, &interface).expect("Left SSM");
1241+
socket.join_ssm_v4(&s, &g, &interface).expect("Joined SSM");
1242+
socket.leave_ssm_v4(&s, &g, &interface).expect("Left SSM");
12431243
}
12441244

12451245
#[test]

0 commit comments

Comments
 (0)