Skip to content

Commit da6142c

Browse files
committed
Rustfmt result (for relevant changes) to satisfy Travis line length check.
Signed-off-by: Nicholas Rishel <[email protected]>
1 parent c7f3621 commit da6142c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/sys/unix/ext/net.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ impl SocketAddr {
214214
let path = unsafe { mem::transmute::<&[libc::c_char], &[u8]>(&self.addr.sun_path) };
215215

216216
// macOS seems to return a len of 16 and a zeroed sun_path for unnamed addresses
217-
if len == 0 || (cfg!(not(any(target_os = "linux", target_os = "android"))) && self.addr.sun_path[0] == 0) {
217+
if len == 0
218+
|| (cfg!(not(any(target_os = "linux", target_os = "android")))
219+
&& self.addr.sun_path[0] == 0)
220+
{
218221
AddressKind::Unnamed
219222
} else if self.addr.sun_path[0] == 0 {
220223
AddressKind::Abstract(&path[1..len])

0 commit comments

Comments
 (0)