aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/autodiscovery.rs19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/autodiscovery.rs b/src/autodiscovery.rs
index 86276c1..aa33d01 100644
--- a/src/autodiscovery.rs
+++ b/src/autodiscovery.rs
@@ -109,9 +109,22 @@ fn parse_autodiscovered_address(
}
impl AutodiscoveredAddresses {
- fn strip_timestamps(&self) -> (HashMap<&str, Option<Ipv4Addr>>, HashMap<&str, Option<Ipv6Addr>>) {
- (self.ipv4.iter().map(|(k, v)| (k.as_str(), v.address)).collect(),
- self.ipv6.iter().map(|(k, v)| (k.as_str(), v.address)).collect())
+ fn strip_timestamps(
+ &self,
+ ) -> (
+ HashMap<&str, Option<Ipv4Addr>>,
+ HashMap<&str, Option<Ipv6Addr>>,
+ ) {
+ (
+ self.ipv4
+ .iter()
+ .map(|(k, v)| (k.as_str(), v.address))
+ .collect(),
+ self.ipv6
+ .iter()
+ .map(|(k, v)| (k.as_str(), v.address))
+ .collect(),
+ )
}
fn dump(&self) {