Skip to content

Commit d80ee62

Browse files
author
Jethro Beekman
committed
Remove use of unstable feature
1 parent a0dd815 commit d80ee62

File tree

1 file changed

+1
-2
lines changed
  • fortanix-vme/tests/incoming_connection/src

1 file changed

+1
-2
lines changed

fortanix-vme/tests/incoming_connection/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(io_error_uncategorized)]
21
use std::io::{ErrorKind, Read, Write};
32
use std::net::{IpAddr, Ipv4Addr, Shutdown, SocketAddr, TcpListener, TcpStream, ToSocketAddrs};
43
use std::os::unix::io::{AsRawFd, FromRawFd};
@@ -31,7 +30,7 @@ fn server_run<A: ToSocketAddrs>(addr: A) {
3130
assert_eq!(stream.local_addr().unwrap().port(), 3400);
3231

3332
let no_stream = unsafe { TcpStream::from_raw_fd(666.into()) };
34-
assert_eq!(no_stream.peer_addr().unwrap_err().kind(), ErrorKind::Uncategorized);
33+
no_stream.peer_addr().unwrap_err();
3534

3635
println!("Connection {}: Connected", id);
3736
let mut buff_in = [0u8; 4192];

0 commit comments

Comments
 (0)