meta: cargo fmt

pull/239/head
Jake McGinty 2022-08-10 16:40:32 -06:00
parent 1fb5874527
commit e98c0659ef
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ pub fn _get_local_addrs() -> Result<impl Iterator<Item = std::net::IpAddr>, io::
if let Some(sockaddr_in) = addr.as_sockaddr_in() { if let Some(sockaddr_in) = addr.as_sockaddr_in() {
Some(IpAddr::V4(Ipv4Addr::from(sockaddr_in.ip()))) Some(IpAddr::V4(Ipv4Addr::from(sockaddr_in.ip())))
} else { } 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()))
} }
}) })
}); });