Code cleanup

This commit is contained in:
Matt Brubeck 2020-05-17 10:41:15 -07:00
parent bf09e83d53
commit 9e039177df

View file

@ -11,7 +11,7 @@ use {
std::{
error::Error,
fs::File,
io::{BufReader, self},
io::BufReader,
sync::Arc,
},
};
@ -50,7 +50,7 @@ fn main() -> Result {
})
}
async fn connection(acceptor: TlsAcceptor, stream: TcpStream) -> io::Result<()> {
async fn connection(acceptor: TlsAcceptor, stream: TcpStream) -> Result {
let stream = acceptor.accept(stream).await?;
let mut stream = async_std::io::BufReader::new(stream);