about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorNicholas Rishel <nick@accups.com>2018-04-19 17:27:05 -0400
committerNicholas Rishel <nick@accups.com>2018-04-19 17:27:05 -0400
commitda6142c81057342d8d6686ae4078995aab73b5bc (patch)
tree0e86e65e921008f47ce179abcd3627be96bf5860 /src/libstd/sys
parentc7f3621f0e9e6ca617ff5debc634e1e16d0a662f (diff)
downloadrust-da6142c81057342d8d6686ae4078995aab73b5bc.tar.gz
rust-da6142c81057342d8d6686ae4078995aab73b5bc.zip
Rustfmt result (for relevant changes) to satisfy Travis line length check.
Signed-off-by: Nicholas Rishel <nick@accups.com>
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/ext/net.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs
index 2010b0218db..e277b1aa7b5 100644
--- a/src/libstd/sys/unix/ext/net.rs
+++ b/src/libstd/sys/unix/ext/net.rs
@@ -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])