Skip to content

Commit

Permalink
fix: errors from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscaOrtegaG committed Dec 11, 2024
1 parent b792799 commit 528ff5f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 836 deletions.
7 changes: 0 additions & 7 deletions src/async_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ impl AsyncResolver {
// Collect IP addresses from the response
let rrs_iter = lookup_response.to_vec_of_rr().into_iter();
let ip_addresses: Result<Vec<IpAddr>, _> = rrs_iter
.filter_map(|rr| {
match AsyncResolver::from_rr_to_ip(rr) {
Ok(ip) if ip.is_ipv4() || ip.is_ipv6() => Some(Ok(ip)),
Ok(_) => None, // Not a valid IP address
Err(err) => Some(Err(err)),
}
})
.filter_map(|rr| {
match AsyncResolver::from_rr_to_ip(rr) {
Ok(ip) if ip.is_ipv4() || ip.is_ipv6() => Some(Ok(ip)),
Expand Down
Loading

0 comments on commit 528ff5f

Please sign in to comment.