Skip to content

Commit 7c15f61

Browse files
committed
cleanup
1 parent a38121b commit 7c15f61

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

iroh-dns/src/dns.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct Nameserver {
160160
addr: SocketAddr,
161161
protocol: DnsProtocol,
162162
/// Only used for DoT/DoH, which require a crypto provider.
163-
#[cfg_attr(not(with_crypto_provider), allow(dead_code))]
163+
#[cfg(with_crypto_provider)]
164164
server_name: Option<String>,
165165
}
166166

@@ -170,6 +170,7 @@ impl Nameserver {
170170
Self {
171171
addr,
172172
protocol,
173+
#[cfg(with_crypto_provider)]
173174
server_name: None,
174175
}
175176
}

0 commit comments

Comments
 (0)