simplify config_attr condition

target_os = "windows" -> windows

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
This commit is contained in:
w1kee 2023-07-07 15:49:42 +02:00 committed by Johann150
parent 2abb15da7a
commit e3154aeb4d

View file

@ -159,7 +159,8 @@ static ARGS: Lazy<Args> = Lazy::new(|| {
struct Args {
addrs: Vec<SocketAddr>,
#[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<PathBuf>,
content_dir: PathBuf,
certs: Arc<certificates::CertStore>,