From 33d39cc34b3feaf0a7139952d91bce200e262bba Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 31 Dec 2020 18:07:59 -0800 Subject: [PATCH] Organize imports --- src/main.rs | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8f481c8..58aed44 100644 --- 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 {