Remove explicit .iter() and .iter_mut() calls in for loops

This commit is contained in:
link2xt
2023-03-12 14:06:42 +00:00
parent b7e939e4d9
commit a432303576
7 changed files with 12 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ async fn lookup_host_with_cache(
}
};
for addr in resolved_addrs.iter() {
for addr in &resolved_addrs {
let ip_string = addr.ip().to_string();
if ip_string == hostname {
// IP address resolved into itself, not interesting to cache.