mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-29 09:45:48 +00:00
Code cleanup
This commit is contained in:
parent
bf09e83d53
commit
9e039177df
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue