Skip to content

Commit

Permalink
fixup: remove let binding
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 22, 2024
1 parent cb57646 commit c310409
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mullvad-daemon/src/android_dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ impl AndroidDnsResolver {
#[async_trait]
impl DnsResolver for AndroidDnsResolver {
async fn resolve(&self, host: String) -> io::Result<Vec<IpAddr>> {
let ips = self.connectivity_listener.current_dns_servers();

let ips = ips.map_err(|err| {
io::Error::other(format!("Failed to retrieve current servers: {err}"))
})?;
let ips = self
.connectivity_listener
.current_dns_servers()
.map_err(|err| {
io::Error::other(format!("Failed to retrieve current servers: {err}"))
})?;
let group = NameServerConfigGroup::from_ips_clear(&ips, 53, false);

let config = ResolverConfig::from_parts(None, vec![], group);
Expand Down

0 comments on commit c310409

Please sign in to comment.