mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
simplify config_attr condition
target_os = "windows" -> windows Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
This commit is contained in:
parent
2abb15da7a
commit
e3154aeb4d
1 changed files with 2 additions and 1 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue