From 9e039177df4bcc3ebebe00ba55b5a2b00c0209a4 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Sun, 17 May 2020 10:41:15 -0700 Subject: [PATCH] Code cleanup --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8361759..5a3cefa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);