Unused timeout variable is now unbound in connect_ssl_internal when

compiled without SSL support.
This commit is contained in:
Aaron Weiss 2014-11-29 04:57:38 -05:00
parent 575d37525a
commit 41c824ce47

View file

@ -56,7 +56,7 @@ impl Connection<BufferedStream<TcpStream>> {
/// Panics because SSL support was not included at compilation.
#[experimental]
#[cfg(not(feature = "ssl"))]
fn connect_ssl_internal(host: &str, port: u16, timeout_ms: Option<u64>)
fn connect_ssl_internal(host: &str, port: u16, _: Option<u64>)
-> IoResult<Connection<BufferedStream<NetStream>>> {
panic!("Cannot connect to {}:{} over SSL without compiling with SSL support.", host, port)
}