Skip to content

Commit 351c476

Browse files
authored
Rollup merge of #43202 - jackpot51:patch-1, r=sfackler
Fix sys::redox::net::tcp A change to the upper level API needed to be filtered down
2 parents 721f736 + 0d617ce commit 351c476

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/sys/redox/net

1 file changed

+1
-1
lines changed

src/libstd/sys/redox/net/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl TcpStream {
3232
Ok(TcpStream(File::open(&Path::new(path.as_str()), &options)?))
3333
}
3434

35-
pub fn connect_timeout(_addr: &SocketAddr, _timeout: Duration) -> Result<()> {
35+
pub fn connect_timeout(_addr: &SocketAddr, _timeout: Duration) -> Result<TcpStream> {
3636
Err(Error::new(ErrorKind::Other, "TcpStream::connect_timeout not implemented"))
3737
}
3838

0 commit comments

Comments
 (0)