File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ impl UnixStream {
352
352
/// ```
353
353
#[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
354
354
pub fn take_error ( & self ) -> io:: Result < Option < io:: Error > > {
355
- Err ( Error :: new ( ErrorKind :: Other , "UnixStream::take_error unimplemented on redox" ) )
355
+ Ok ( None )
356
356
}
357
357
358
358
/// Shuts down the read, write, or both halves of this connection.
@@ -373,7 +373,7 @@ impl UnixStream {
373
373
/// socket.shutdown(Shutdown::Both).expect("shutdown function failed");
374
374
/// ```
375
375
#[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
376
- pub fn shutdown ( & self , how : Shutdown ) -> io:: Result < ( ) > {
376
+ pub fn shutdown ( & self , _how : Shutdown ) -> io:: Result < ( ) > {
377
377
Err ( Error :: new ( ErrorKind :: Other , "UnixStream::shutdown unimplemented on redox" ) )
378
378
}
379
379
}
@@ -607,7 +607,7 @@ impl UnixListener {
607
607
/// ```
608
608
#[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
609
609
pub fn take_error ( & self ) -> io:: Result < Option < io:: Error > > {
610
- Err ( Error :: new ( ErrorKind :: Other , "UnixListener::take_error unimplemented on redox" ) )
610
+ Ok ( None )
611
611
}
612
612
613
613
/// Returns an iterator over incoming connections.
You can’t perform that action at this time.
0 commit comments