commit 33d39cc34b3feaf0a7139952d91bce200e262bba
parent 471a9927a06d09f70f3eba42030908c96a95beac
Author: Matt Brubeck <mbrubeck@limpet.net>
Date: Thu, 31 Dec 2020 18:07:59 -0800
Organize imports
Diffstat:
M | src/main.rs | | | 44 | +++++++++++++++++++++++--------------------- |
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/src/main.rs b/src/main.rs
@@ -1,25 +1,27 @@
-use tokio::{
- io::{AsyncReadExt, AsyncWriteExt},
- net::{TcpListener, TcpStream},
- runtime::Runtime,
+use {
+ once_cell::sync::Lazy,
+ percent_encoding::{AsciiSet, CONTROLS, percent_decode_str, percent_encode},
+ rustls::{
+ internal::pemfile::{certs, pkcs8_private_keys},
+ NoClientAuth, ServerConfig,
+ },
+ std::{
+ borrow::Cow,
+ error::Error,
+ ffi::OsStr,
+ fs::File,
+ io::BufReader,
+ path::Path,
+ sync::Arc,
+ },
+ tokio::{
+ io::{AsyncReadExt, AsyncWriteExt},
+ net::{TcpListener, TcpStream},
+ runtime::Runtime,
+ },
+ tokio_rustls::{TlsAcceptor, server::TlsStream},
+ url::{Host, Url},
};
-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},
- NoClientAuth, ServerConfig,
-};
-use std::{
- borrow::Cow,
- error::Error,
- ffi::OsStr,
- fs::File,
- io::BufReader,
- path::Path,
- sync::Arc,
-};
-use url::{Host, Url};
fn main() -> Result {
if !ARGS.silent {