We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb1efa commit 6d62f5dCopy full SHA for 6d62f5d
tests/tcp_socket.rs
@@ -46,10 +46,10 @@ fn set_keepalive() {
46
47
let socket = TcpSocket::new_v4().unwrap();
48
socket.set_keepalive(false).unwrap();
49
- assert_eq!(false, socket.get_keepalive().unwrap());
+ assert!(!socket.get_keepalive().unwrap());
50
51
socket.set_keepalive(true).unwrap();
52
- assert_eq!(true, socket.get_keepalive().unwrap());
+ assert!(socket.get_keepalive().unwrap());
53
54
socket.bind(addr).unwrap();
55
0 commit comments