Update tcp.rs
This commit is contained in:
parent
f85579d4a2
commit
0d617ce4c9
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ impl TcpStream {
|
|||
Ok(TcpStream(File::open(&Path::new(path.as_str()), &options)?))
|
||||
}
|
||||
|
||||
pub fn connect_timeout(_addr: &SocketAddr, _timeout: Duration) -> Result<()> {
|
||||
pub fn connect_timeout(_addr: &SocketAddr, _timeout: Duration) -> Result<TcpStream> {
|
||||
Err(Error::new(ErrorKind::Other, "TcpStream::connect_timeout not implemented"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue