specify allow(dead_code) to be only on windows

This commit is contained in:
w1kee 2023-07-06 21:28:05 +02:00 committed by Johann150
parent 8f346d7c28
commit 2abb15da7a

View file

@ -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>,