Skip to content

Commit

Permalink
meta: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mcginty committed Aug 10, 2022
1 parent 1fb5874 commit e98c065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
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()))
}
})
});
Expand Down

0 comments on commit e98c065

Please sign in to comment.