mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Remove explicit .iter() and .iter_mut() calls in for loops
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user