aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-09-20 01:56:08 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-09-20 01:56:08 +0000
commit8f932897bed0a51a279369dab75afe05cc0bd830 (patch)
treeb93087d474a6e3bd441c4f1bf571a0aa7231399d /src/main.rs
parentGet rid of some unused dependencies (diff)
downloadminiserve-8f932897bed0a51a279369dab75afe05cc0bd830.tar.gz
miniserve-8f932897bed0a51a279369dab75afe05cc0bd830.zip
Tidy up some imports
Diffstat (limited to '')
-rw-r--r--src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index b49089b..2191599 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,13 +1,12 @@
-use std::io;
-use std::io::Write;
+use std::io::{self, Write};
use std::net::{IpAddr, SocketAddr, TcpListener};
use std::thread;
use std::time::Duration;
use actix_files::NamedFile;
-use actix_web::web;
-use actix_web::{http::header::ContentType, Responder};
-use actix_web::{middleware, App, HttpRequest, HttpResponse};
+use actix_web::{
+ http::header::ContentType, middleware, web, App, HttpRequest, HttpResponse, Responder,
+};
use actix_web_httpauth::middleware::HttpAuthentication;
use anyhow::Result;
use clap::{crate_version, IntoApp, Parser};