From 8ad91657c42a9c9f8e40a0a1997fa46b227682be Mon Sep 17 00:00:00 2001 From: Glen De Cauwsemaecker Date: Mon, 11 May 2026 17:49:13 +0200 Subject: [PATCH] Remove duplicate cfg attribute for is_reserved_dos_name --- tower-http/src/services/fs/serve_dir/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tower-http/src/services/fs/serve_dir/mod.rs b/tower-http/src/services/fs/serve_dir/mod.rs index 54e67304..1fc82c51 100644 --- a/tower-http/src/services/fs/serve_dir/mod.rs +++ b/tower-http/src/services/fs/serve_dir/mod.rs @@ -508,7 +508,6 @@ impl ServeVariant { /// iterates the characters twice. The closure must return the same iterator each time it is /// called. #[cfg(any(windows, test))] -#[cfg(any(windows, test))] fn is_reserved_dos_name(mut get_iter: F) -> bool where F: FnMut() -> I,