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 {
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
You can’t perform that action at this time.
0 commit comments