mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 20:45:29 +00:00
specify allow(dead_code) to be only on windows
This commit is contained in:
parent
8f346d7c28
commit
2abb15da7a
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ static ARGS: Lazy<Args> = Lazy::new(|| {
|
||||||
|
|
||||||
struct Args {
|
struct Args {
|
||||||
addrs: Vec<SocketAddr>,
|
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>,
|
sockets: Vec<PathBuf>,
|
||||||
content_dir: PathBuf,
|
content_dir: PathBuf,
|
||||||
certs: Arc<certificates::CertStore>,
|
certs: Arc<certificates::CertStore>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue