commit 2abb15da7a5dd7496438fca250a6af9ac9c0704f
parent 8f346d7c28a7ddb623a9e8821b5ad7966dfeb09a
Author: w1kee <31793948+w1kee@users.noreply.github.com>
Date: Thu, 6 Jul 2023 21:28:05 +0200
specify allow(dead_code) to be only on windows
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
@@ -159,7 +159,7 @@ static ARGS: Lazy<Args> = Lazy::new(|| {
struct Args {
addrs: Vec<SocketAddr>,
- #[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<PathBuf>,
content_dir: PathBuf,
certs: Arc<certificates::CertStore>,