diff --git a/src/client/builder.rs b/src/client/builder.rs index 7c6146672b..3807ae8217 100644 --- a/src/client/builder.rs +++ b/src/client/builder.rs @@ -392,10 +392,10 @@ impl<'u> ClientBuilder<'u> { pub fn connect( &mut self, ssl_config: Option, - ) -> WebSocketResult>> { + ) -> WebSocketResult>> { let tcp_stream = try!(self.establish_tcp(None)); - let boxed_stream: Box = if + let boxed_stream: Box = if self.url.scheme() == "wss" { Box::new(try!(self.wrap_ssl(tcp_stream, ssl_config))) } else {