Skip to content

Commit 4195007

Browse files
committed
Trim all lines to 100
1 parent 3b866b0 commit 4195007

File tree

1 file changed

+10
-3
lines changed
  • src/libstd/sys/redox/ext

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ impl UnixStream {
132132
.map(FileDesc::new)
133133
.map(UnixStream)
134134
} else {
135-
Err(Error::new(ErrorKind::Other, "UnixStream::connect: non-utf8 paths not supported on redox"))
135+
Err(Error::new(
136+
ErrorKind::Other,
137+
"UnixStream::connect: non-utf8 paths not supported on redox"
138+
))
136139
}
137140
}
138141

@@ -155,7 +158,8 @@ impl UnixStream {
155158
/// ```
156159
#[stable(feature = "unix_socket", since = "1.10.0")]
157160
pub fn pair() -> io::Result<(UnixStream, UnixStream)> {
158-
let server = cvt(syscall::open("chan:", syscall::O_CREAT | syscall::O_CLOEXEC)).map(FileDesc::new)?;
161+
let server = cvt(syscall::open("chan:", syscall::O_CREAT | syscall::O_CLOEXEC))
162+
.map(FileDesc::new)?;
159163
let client = server.duplicate_path(b"connect")?;
160164
let stream = server.duplicate_path(b"listen")?;
161165
Ok((UnixStream(client), UnixStream(stream)))
@@ -511,7 +515,10 @@ impl UnixListener {
511515
.map(FileDesc::new)
512516
.map(UnixListener)
513517
} else {
514-
Err(Error::new(ErrorKind::Other, "UnixListener::bind: non-utf8 paths not supported on redox"))
518+
Err(Error::new(
519+
ErrorKind::Other,
520+
"UnixListener::bind: non-utf8 paths not supported on redox"
521+
))
515522
}
516523
}
517524

0 commit comments

Comments
 (0)