From e98c0659efa5cc42564a7273e3baa11ebaed5396 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Wed, 10 Aug 2022 16:40:32 -0600 Subject: [PATCH] meta: cargo fmt --- shared/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 3826600..f13fe64 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -94,7 +94,8 @@ pub fn _get_local_addrs() -> Result, io:: if let Some(sockaddr_in) = addr.as_sockaddr_in() { Some(IpAddr::V4(Ipv4Addr::from(sockaddr_in.ip()))) } else { - addr.as_sockaddr_in6().map(|sockaddr_in6| IpAddr::V6(sockaddr_in6.ip())) + addr.as_sockaddr_in6() + .map(|sockaddr_in6| IpAddr::V6(sockaddr_in6.ip())) } }) });