From b306d35f543adaab3f6e372ae25d4365715004c6 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 3 Oct 2023 07:53:47 -0400 Subject: [PATCH] fix trust-dns error kind on windows --- src/dns/trust_dns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns/trust_dns.rs b/src/dns/trust_dns.rs index 3a5abda81..4492f5b38 100644 --- a/src/dns/trust_dns.rs +++ b/src/dns/trust_dns.rs @@ -51,6 +51,6 @@ impl Iterator for SocketAddrs { /// which reads from `/etc/resolve.conf`. fn new_resolver() -> io::Result { let (config, opts) = system_conf::read_system_conf() - .map_err(|e| io::Error::new(e.kind(), format!("error reading DNS system conf: {}", e)))?; + .map_err(|e| io::Error::new(io::ErrorKind::Other, format!("error reading DNS system conf: {}", e)))?; Ok(TokioAsyncResolver::tokio(config, opts)) }