From e3154aeb4dcf2509c2b45e8e2c3c01da1660c54e Mon Sep 17 00:00:00 2001 From: w1kee <31793948+w1kee@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:49:42 +0200 Subject: [PATCH] simplify config_attr condition target_os = "windows" -> windows Co-authored-by: Johann150 --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1f4710b..5f57565 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,7 +159,8 @@ static ARGS: Lazy = Lazy::new(|| { struct Args { addrs: Vec, - #[cfg_attr(target_os = "windows", allow(dead_code))] // only used on unix, so dead code on windows + // only used on unix, so dead code on windows + #[cfg_attr(windows, allow(dead_code))] sockets: Vec, content_dir: PathBuf, certs: Arc,