Trim all lines to 100
This commit is contained in:
parent
3b866b0ea4
commit
419500710d
1 changed files with 10 additions and 3 deletions
|
|
@ -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"
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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)))
|
||||
|
|
@ -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"
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue