From b60f5b1694aee70aea61f8de7bf5f6090c0d53e6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 21 Apr 2023 15:58:46 +0200 Subject: cargo fmt --- src/autodiscovery.rs | 19 ++++++++++++++++--- 1 file 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>, HashMap<&str, Option>) { - (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>, + HashMap<&str, Option>, + ) { + ( + 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) { -- cgit v1.2.3