Small cleanups.

This commit is contained in:
Jacob Hoffman-Andrews
2020-11-28 22:34:32 -08:00
parent 50cb5cecd1
commit 6a22c54ba2
2 changed files with 3 additions and 14 deletions

View File

@@ -138,13 +138,13 @@ impl Stream {
fn from_tcp_stream(t: TcpStream) -> Stream {
Stream {
inner: BufReader::with_capacity(1000, Inner::Http(t)),
inner: BufReader::new(Inner::Http(t)),
}
}
fn from_tls_stream(t: StreamOwned<ClientSession, TcpStream>) -> Stream {
Stream {
inner: BufReader::with_capacity(1000, Inner::Https(t)),
inner: BufReader::new(Inner::Https(t)),
}
}