Fix non-tls case correctly.

This commit is contained in:
Jacob Hoffman-Andrews
2020-11-29 00:02:33 -08:00
parent 6b6a59f215
commit 36b307423c

View File

@@ -135,7 +135,7 @@ impl Stream {
} }
} }
#[cfg(tls)] #[cfg(feature = "tls")]
fn from_tls_stream(t: StreamOwned<ClientSession, TcpStream>) -> Stream { fn from_tls_stream(t: StreamOwned<ClientSession, TcpStream>) -> Stream {
Stream { Stream {
inner: BufReader::new(Inner::Https(t)), inner: BufReader::new(Inner::Https(t)),