Skip to content

Commit 6d62f5d

Browse files
HywanThomasdezeeuw
authored andcommitted
chore: Make Clippy happy.
1 parent 6eb1efa commit 6d62f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tcp_socket.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ fn set_keepalive() {
4646

4747
let socket = TcpSocket::new_v4().unwrap();
4848
socket.set_keepalive(false).unwrap();
49-
assert_eq!(false, socket.get_keepalive().unwrap());
49+
assert!(!socket.get_keepalive().unwrap());
5050

5151
socket.set_keepalive(true).unwrap();
52-
assert_eq!(true, socket.get_keepalive().unwrap());
52+
assert!(socket.get_keepalive().unwrap());
5353

5454
socket.bind(addr).unwrap();
5555

0 commit comments

Comments
 (0)