Format Rust code using rustfmt

This commit is contained in:
github-actions[bot]
2025-04-08 17:39:53 +00:00
committed by GitHub
parent 1257eed28b
commit f56cf593a3

View File

@ -202,8 +202,9 @@ fn main() {
info!("Matched hosts:"); info!("Matched hosts:");
let resolved_ips = Arc::new(Mutex::new(Vec::<(String, IpAddr)>::new())); let resolved_ips = Arc::new(Mutex::new(Vec::<(String, IpAddr)>::new()));
matched_hosts.par_iter().for_each(|host| { matched_hosts
match lookup_host(&host.name) { .par_iter()
.for_each(|host| match lookup_host(&host.name) {
Ok(ips) if !ips.is_empty() => { Ok(ips) if !ips.is_empty() => {
let ip = ips[0]; let ip = ips[0];
@ -218,7 +219,6 @@ fn main() {
Err(_) => { Err(_) => {
error!("DNS resolve failed: {}", &host.name.red()); error!("DNS resolve failed: {}", &host.name.red());
} }
}
}); });
let mut hosts_and_ips: HashMap<IpAddr, String> = HashMap::new(); let mut hosts_and_ips: HashMap<IpAddr, String> = HashMap::new();