From 2abb15da7a5dd7496438fca250a6af9ac9c0704f Mon Sep 17 00:00:00 2001 From: w1kee <31793948+w1kee@users.noreply.github.com> Date: Thu, 6 Jul 2023 21:28:05 +0200 Subject: [PATCH] specify allow(dead_code) to be only on windows --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7ea786d..1f4710b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,7 +159,7 @@ static ARGS: Lazy = Lazy::new(|| { struct Args { addrs: Vec, - #[allow(dead_code)] // only used on unix, so dead code on windows + #[cfg_attr(target_os = "windows", allow(dead_code))] // only used on unix, so dead code on windows sockets: Vec, content_dir: PathBuf, certs: Arc,