From c44b1a082ea7c02eb45c85f46135827301d429ee Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Mon, 2 Dec 2024 20:11:51 +0300 Subject: [PATCH] remove compile_error --- src/serve_dir_included.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/serve_dir_included.rs b/src/serve_dir_included.rs index 9a92c20..dc50c65 100644 --- a/src/serve_dir_included.rs +++ b/src/serve_dir_included.rs @@ -39,9 +39,6 @@ pub async fn handle( req: Request, included_dir: &'static Dir<'static>, ) -> Result { - #[cfg(windows)] - compile_error!("this is not safe"); - let path = req.uri().path(); let has_dotdot = path.split('/').any(|seg| seg == "..");