Skip to content

Commit

Permalink
Trim all lines to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
jD91mZM2 committed Jun 26, 2018
1 parent 3b866b0 commit 4195007
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/libstd/sys/redox/ext/net.rs
Expand Up @@ -132,7 +132,10 @@ impl UnixStream {
.map(FileDesc::new)
.map(UnixStream)
} else {
Err(Error::new(ErrorKind::Other, "UnixStream::connect: non-utf8 paths not supported on redox"))
Err(Error::new(
ErrorKind::Other,
"UnixStream::connect: non-utf8 paths not supported on redox"
))
}
}

Expand All @@ -155,7 +158,8 @@ impl UnixStream {
/// ```
#[stable(feature = "unix_socket", since = "1.10.0")]
pub fn pair() -> io::Result<(UnixStream, UnixStream)> {
let server = cvt(syscall::open("chan:", syscall::O_CREAT | syscall::O_CLOEXEC)).map(FileDesc::new)?;
let server = cvt(syscall::open("chan:", syscall::O_CREAT | syscall::O_CLOEXEC))
.map(FileDesc::new)?;
let client = server.duplicate_path(b"connect")?;
let stream = server.duplicate_path(b"listen")?;
Ok((UnixStream(client), UnixStream(stream)))
Expand Down Expand Up @@ -511,7 +515,10 @@ impl UnixListener {
.map(FileDesc::new)
.map(UnixListener)
} else {
Err(Error::new(ErrorKind::Other, "UnixListener::bind: non-utf8 paths not supported on redox"))
Err(Error::new(
ErrorKind::Other,
"UnixListener::bind: non-utf8 paths not supported on redox"
))
}
}

Expand Down

0 comments on commit 4195007

Please sign in to comment.