From ee507ac4b424d47ccc43245559ce3a6585e2b4ff Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Tue, 20 Jun 2023 02:46:02 +0300 Subject: [PATCH] Added expansion of hosts list. --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index d25f8d6..fb09fa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,12 +6,12 @@ use env_logger::Env; use itertools::Itertools; use log::{error, info}; use massh::{MasshClient, MasshConfig, MasshHostConfig, SshAuth}; -use regex::{Error, Regex}; -use std::collections::{HashMap, HashSet}; +use regex::{Regex}; +use std::collections::{HashMap}; use std::fs::read_to_string; use std::hash::Hash; use std::net::IpAddr; -use std::str::FromStr; + use std::process; #[macro_use] @@ -116,7 +116,7 @@ fn main() { }; // Dedup hosts from known_hosts file - let mut matched_hosts: Vec<_> = hosts.into_iter().unique().collect(); + let matched_hosts: Vec<_> = hosts.into_iter().unique().collect(); // Build MasshHostConfig hostnames list let mut massh_hosts: Vec = vec![];