Skip to content
/ rust Public
forked from rust-lang/rust

Commit 88063ca

Browse files
budziqdtolnay
authored andcommitted
stabilize tcpstream_connect_timeout (closes rust-lang#43079)
1 parent ea1fd7d commit 88063ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/tcp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl TcpStream {
147147
/// connection request.
148148
///
149149
/// [`SocketAddr`]: ../../std/net/enum.SocketAddr.html
150-
#[unstable(feature = "tcpstream_connect_timeout", issue = "43079")]
150+
#[stable(feature = "tcpstream_connect_timeout", since = "1.22.0")]
151151
pub fn connect_timeout(addr: &SocketAddr, timeout: Duration) -> io::Result<TcpStream> {
152152
net_imp::TcpStream::connect_timeout(addr, timeout).map(TcpStream)
153153
}

0 commit comments

Comments
 (0)