mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-06 16:44:08 +00:00
Format Rust code using rustfmt
This commit is contained in:
committed by
GitHub
parent
1257eed28b
commit
f56cf593a3
@ -202,8 +202,9 @@ fn main() {
|
||||
info!("Matched hosts:");
|
||||
let resolved_ips = Arc::new(Mutex::new(Vec::<(String, IpAddr)>::new()));
|
||||
|
||||
matched_hosts.par_iter().for_each(|host| {
|
||||
match lookup_host(&host.name) {
|
||||
matched_hosts
|
||||
.par_iter()
|
||||
.for_each(|host| match lookup_host(&host.name) {
|
||||
Ok(ips) if !ips.is_empty() => {
|
||||
let ip = ips[0];
|
||||
|
||||
@ -218,8 +219,7 @@ fn main() {
|
||||
Err(_) => {
|
||||
error!("DNS resolve failed: {}", &host.name.red());
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
let mut hosts_and_ips: HashMap<IpAddr, String> = HashMap::new();
|
||||
let mut massh_hosts: Vec<MasshHostConfig> = Vec::new();
|
||||
|
Reference in New Issue
Block a user