mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 20:45:29 +00:00
Organize imports
This commit is contained in:
parent
471a9927a0
commit
33d39cc34b
1 changed files with 23 additions and 21 deletions
44
src/main.rs
44
src/main.rs
|
|
@ -1,25 +1,27 @@
|
||||||
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::{
|
||||||
|
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 {
|
fn main() -> Result {
|
||||||
if !ARGS.silent {
|
if !ARGS.silent {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue