diff options
Diffstat (limited to 'components/net/connector.rs')
-rw-r--r-- | components/net/connector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/connector.rs b/components/net/connector.rs index 50d8c11a6c5..659fb4b6ad9 100644 --- a/components/net/connector.rs +++ b/components/net/connector.rs @@ -36,7 +36,7 @@ impl NetworkConnector for HttpsConnector { // Perform host replacement when making the actual TCP connection. let addr = &(&*replace_host(host), port); - let stream = HttpStream(try!(TcpStream::connect(addr))); + let stream = HttpStream(TcpStream::connect(addr)?); if scheme == "http" { Ok(HttpsStream::Http(stream)) |