Skip to content

Commit

Permalink
chore: Make Clippy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan authored and Thomasdezeeuw committed Jun 26, 2021
1 parent 6eb1efa commit 6d62f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tcp_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ fn set_keepalive() {

let socket = TcpSocket::new_v4().unwrap();
socket.set_keepalive(false).unwrap();
assert_eq!(false, socket.get_keepalive().unwrap());
assert!(!socket.get_keepalive().unwrap());

socket.set_keepalive(true).unwrap();
assert_eq!(true, socket.get_keepalive().unwrap());
assert!(socket.get_keepalive().unwrap());

socket.bind(addr).unwrap();

Expand Down

0 comments on commit 6d62f5d

Please sign in to comment.