@@ -8,10 +8,10 @@ use crate::sys::handle::Handle;
88use crate :: sys:: pipe:: unnamed_anon_pipe;
99use crate :: sys_common:: { FromInner , IntoInner } ;
1010
11- pub ( crate ) type AnonPipe = Handle ;
11+ pub type AnonPipe = Handle ;
1212
1313#[ inline]
14- pub ( crate ) fn pipe ( ) -> io:: Result < ( AnonPipe , AnonPipe ) > {
14+ pub fn pipe ( ) -> io:: Result < ( AnonPipe , AnonPipe ) > {
1515 unnamed_anon_pipe ( ) . map ( |( rx, wx) | ( rx. into_inner ( ) , wx. into_inner ( ) ) )
1616}
1717
@@ -31,7 +31,7 @@ impl AsRawHandle for PipeReader {
3131#[ unstable( feature = "anonymous_pipe" , issue = "127154" ) ]
3232impl FromRawHandle for PipeReader {
3333 unsafe fn from_raw_handle ( raw_handle : RawHandle ) -> Self {
34- Self ( Handle :: from_raw_handle ( raw_handle) )
34+ unsafe { Self ( Handle :: from_raw_handle ( raw_handle) ) }
3535 }
3636}
3737#[ unstable( feature = "anonymous_pipe" , issue = "127154" ) ]
@@ -70,7 +70,7 @@ impl AsRawHandle for PipeWriter {
7070#[ unstable( feature = "anonymous_pipe" , issue = "127154" ) ]
7171impl FromRawHandle for PipeWriter {
7272 unsafe fn from_raw_handle ( raw_handle : RawHandle ) -> Self {
73- Self ( Handle :: from_raw_handle ( raw_handle) )
73+ unsafe { Self ( Handle :: from_raw_handle ( raw_handle) ) }
7474 }
7575}
7676#[ unstable( feature = "anonymous_pipe" , issue = "127154" ) ]
0 commit comments