diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:04 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:51 +0200 |
commit | 316cd35767ce94e33cd778a684ebd2dcedfde537 (patch) | |
tree | 3c21637169f75113d3c17a214a8693ff64770836 /components/net/connector.rs | |
parent | 7af5a7fd5409ab8db0274eb829136e5953e718ed (diff) | |
download | servo-316cd35767ce94e33cd778a684ebd2dcedfde537.tar.gz servo-316cd35767ce94e33cd778a684ebd2dcedfde537.zip |
Untry
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)) |