From a3a29695d90958df11a713f7acc922767e6ddd5c Mon Sep 17 00:00:00 2001 From: ty Date: Wed, 12 Jun 2024 13:44:16 +0800 Subject: [PATCH] fix: android build warning --- crates/shadowsocks/src/dns_resolver/resolver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/shadowsocks/src/dns_resolver/resolver.rs b/crates/shadowsocks/src/dns_resolver/resolver.rs index 0915b7095867..d2ee79919b5f 100644 --- a/crates/shadowsocks/src/dns_resolver/resolver.rs +++ b/crates/shadowsocks/src/dns_resolver/resolver.rs @@ -40,9 +40,9 @@ pub trait DnsResolve { #[cfg(feature = "hickory-dns")] pub struct HickoryDnsSystemResolver { resolver: ArcSwap, - #[cfg_attr(windows, allow(dead_code))] + #[cfg_attr(any(windows, target_os = "android"), allow(dead_code))] connect_opts: ConnectOpts, - #[cfg_attr(windows, allow(dead_code))] + #[cfg_attr(any(windows, target_os = "android"), allow(dead_code))] opts: Option, }