Fixed bug when compiling with no-default-features.

This commit is contained in:
Aaron Weiss 2017-06-19 14:19:57 -04:00
parent 02f9968b0c
commit e5e33e9069
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2

View file

@ -107,7 +107,7 @@ impl NetConnection {
/// Panics because SSL support is not compiled in.
#[cfg(not(feature = "ssl"))]
fn connect_ssl_internal(host: &str, port: u16) -> Result<NetStream> {
fn connect_ssl_internal(host: &str, port: u16) -> Result<NetBufStream> {
panic!(
"Cannot connect to {}:{} over SSL without compiling with SSL support.",
host,