Skip to content

Commit

Permalink
Rustfmt result (for relevant changes) to satisfy Travis line length c…
Browse files Browse the repository at this point in the history
…heck.

Signed-off-by: Nicholas Rishel <nick@accups.com>
  • Loading branch information
NickAtAccuPS committed Apr 19, 2018
1 parent c7f3621 commit da6142c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstd/sys/unix/ext/net.rs
Expand Up @@ -214,7 +214,10 @@ impl SocketAddr {
let path = unsafe { mem::transmute::<&[libc::c_char], &[u8]>(&self.addr.sun_path) };

// macOS seems to return a len of 16 and a zeroed sun_path for unnamed addresses
if len == 0 || (cfg!(not(any(target_os = "linux", target_os = "android"))) && self.addr.sun_path[0] == 0) {
if len == 0
|| (cfg!(not(any(target_os = "linux", target_os = "android")))
&& self.addr.sun_path[0] == 0)
{
AddressKind::Unnamed
} else if self.addr.sun_path[0] == 0 {
AddressKind::Abstract(&path[1..len])
Expand Down

0 comments on commit da6142c

Please sign in to comment.