mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
Remove &addr arg from TcpListener::from_std (#92)
This has been deprecated in mio.
This commit is contained in:
committed by
Alex Crichton
parent
fd37fb0f17
commit
117dcba8cb
+1
-2
@@ -119,9 +119,8 @@ impl TcpListener {
|
||||
/// `addr` is an IPv4 address then all sockets accepted will be IPv4 as
|
||||
/// well (same for IPv6).
|
||||
pub fn from_std(listener: net::TcpListener,
|
||||
addr: &SocketAddr,
|
||||
handle: &Handle) -> io::Result<TcpListener> {
|
||||
let l = mio::net::TcpListener::from_listener(listener, addr)?;
|
||||
let l = mio::net::TcpListener::from_std(listener)?;
|
||||
TcpListener::new(l, handle)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user