From ad6d7dcc2698e964cce022b42e2fcc1304409aae Mon Sep 17 00:00:00 2001 From: Random936 Date: Tue, 24 Dec 2024 18:55:54 -0800 Subject: [PATCH] Removed unnecessary code --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0bcafaa..40e17c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,4 @@ -use std::{ - env, - net::SocketAddr -}; +use std::net::SocketAddr; use tokio::net::TcpListener; use tower_http::services::ServeDir; use axum::{ @@ -21,8 +18,6 @@ mod upload; async fn main() { let args = argparse::parse_args(); let conf = config::load_config(); - let cwd = env::current_dir().unwrap(); - let port = match args.port { Some(port) => port, None => conf.web_port