File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,10 @@ impl UnixStream {
132
132
. map ( FileDesc :: new)
133
133
. map ( UnixStream )
134
134
} 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
+ ) )
136
139
}
137
140
}
138
141
@@ -155,7 +158,8 @@ impl UnixStream {
155
158
/// ```
156
159
#[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
157
160
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) ?;
159
163
let client = server. duplicate_path ( b"connect" ) ?;
160
164
let stream = server. duplicate_path ( b"listen" ) ?;
161
165
Ok ( ( UnixStream ( client) , UnixStream ( stream) ) )
@@ -511,7 +515,10 @@ impl UnixListener {
511
515
. map ( FileDesc :: new)
512
516
. map ( UnixListener )
513
517
} 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
+ ) )
515
522
}
516
523
}
517
524
You can’t perform that action at this time.
0 commit comments