From d410b27e85ffa653a64d10bcd6b43cc5f64fe5d9 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Wed, 13 Feb 2019 18:51:51 +0100 Subject: Removed config.rs and put back actix config in main.rs --- src/listing.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/listing.rs') diff --git a/src/listing.rs b/src/listing.rs index c955191..aeddd7d 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -8,8 +8,6 @@ use std::io; use std::path::Path; use std::str::FromStr; -use crate::config; - #[derive(Clone, Copy, Debug)] pub enum SortingMethods { Natural, @@ -69,7 +67,7 @@ impl FromStr for SortingMethods { } } -pub fn file_handler(req: &HttpRequest) -> Result { +pub fn file_handler(req: &HttpRequest) -> Result { let path = &req.state().path; Ok(fs::NamedFile::open(path)?) } -- cgit v1.2.3