We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446b96e commit cdae14fCopy full SHA for cdae14f
iroh-relay/src/dns.rs
@@ -141,7 +141,7 @@ impl DnsResolver {
141
timeout: Duration,
142
) -> Result<impl Iterator<Item = IpAddr>> {
143
let addrs = time::timeout(timeout, self.0.lookup_ipv4(host.to_string())).await??;
144
- Ok(addrs.map(|ip| IpAddr::V4(ip)))
+ Ok(addrs.map(IpAddr::V4))
145
}
146
147
/// Performs an IPv6 lookup with a timeout.
@@ -151,7 +151,7 @@ impl DnsResolver {
151
152
153
let addrs = time::timeout(timeout, self.0.lookup_ipv6(host.to_string())).await??;
154
- Ok(addrs.map(|ip| IpAddr::V6(ip)))
+ Ok(addrs.map(IpAddr::V6))
155
156
157
/// Resolves IPv4 and IPv6 in parallel with a timeout.
0 commit comments