cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alex 2023-04-21 15:58:46 +02:00
parent 49d94dae1d
commit b60f5b1694

View file

@ -109,9 +109,22 @@ fn parse_autodiscovered_address(
} }
impl AutodiscoveredAddresses { impl AutodiscoveredAddresses {
fn strip_timestamps(&self) -> (HashMap<&str, Option<Ipv4Addr>>, HashMap<&str, Option<Ipv6Addr>>) { fn strip_timestamps(
(self.ipv4.iter().map(|(k, v)| (k.as_str(), v.address)).collect(), &self,
self.ipv6.iter().map(|(k, v)| (k.as_str(), v.address)).collect()) ) -> (
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) { fn dump(&self) {