From 8574a328c9fe6cbd8b0bfe2dc1446b3e1a878464 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Sun, 3 Apr 2022 14:31:57 +0200 Subject: [PATCH] cargo clippy & cargo fmt --- src/main.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 053d9fb..2497ed2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,10 +3,10 @@ use std::path::{Path, PathBuf}; use actix_files::{Files, NamedFile}; use actix_multipart::Multipart; -use actix_web::{App, Error, HttpRequest, HttpResponse, HttpServer, web}; use actix_web::dev::{fn_service, ServiceRequest, ServiceResponse}; use actix_web::error::{ErrorBadRequest, ErrorInternalServerError, ErrorUnauthorized}; use actix_web::middleware::Logger; +use actix_web::{web, App, Error, HttpRequest, HttpResponse, HttpServer}; use bytes::BufMut; use clap::Parser; use futures_util::TryStreamExt; @@ -224,9 +224,11 @@ async fn default_files_handler(req: ServiceRequest) -> Result Result std::io::Result<()> { .wrap(Logger::default()) .app_data(web::Data::new(args.clone())) }) - .bind(listen_address)? - .run() - .await + .bind(listen_address)? + .run() + .await }