Update tcp.rs

This commit is contained in:
Jeremy Soller 2017-07-12 20:37:18 -06:00 committed by GitHub
parent f85579d4a2
commit 0d617ce4c9

View File

@ -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"))
}