Organize imports

This commit is contained in:
Matt Brubeck 2020-12-31 18:07:59 -08:00
parent 471a9927a0
commit 33d39cc34b

View file

@ -1,16 +1,11 @@
use tokio::{ use {
io::{AsyncReadExt, AsyncWriteExt}, once_cell::sync::Lazy,
net::{TcpListener, TcpStream}, percent_encoding::{AsciiSet, CONTROLS, percent_decode_str, percent_encode},
runtime::Runtime, rustls::{
};
use tokio_rustls::{TlsAcceptor, server::TlsStream};
use once_cell::sync::Lazy;
use percent_encoding::{AsciiSet, CONTROLS, percent_decode_str, percent_encode};
use rustls::{
internal::pemfile::{certs, pkcs8_private_keys}, internal::pemfile::{certs, pkcs8_private_keys},
NoClientAuth, ServerConfig, NoClientAuth, ServerConfig,
}; },
use std::{ std::{
borrow::Cow, borrow::Cow,
error::Error, error::Error,
ffi::OsStr, ffi::OsStr,
@ -18,8 +13,15 @@ use std::{
io::BufReader, io::BufReader,
path::Path, path::Path,
sync::Arc, sync::Arc,
},
tokio::{
io::{AsyncReadExt, AsyncWriteExt},
net::{TcpListener, TcpStream},
runtime::Runtime,
},
tokio_rustls::{TlsAcceptor, server::TlsStream},
url::{Host, Url},
}; };
use url::{Host, Url};
fn main() -> Result { fn main() -> Result {
if !ARGS.silent { if !ARGS.silent {