avoid unwrap() for functions that don't error
This commit is contained in:

committed by
Benjamin Fry

parent
04e2c9cf31
commit
756749bd9e
@@ -413,7 +413,7 @@ impl<C: DnsHandle<Error = ResolveError>, P: ConnectionProvider<Conn = C>> AsyncR
|
||||
self.client_cache.clone(),
|
||||
DnsRequestOptions::default(),
|
||||
hosts,
|
||||
finally_ip_addr.map(Record::unwrap_rdata),
|
||||
finally_ip_addr.map(Record::into_data),
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
Reference in New Issue
Block a user