@@ -7,7 +7,7 @@ use super::raw::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
7
7
use crate :: marker:: PhantomData ;
8
8
use crate :: mem:: ManuallyDrop ;
9
9
#[ cfg( not( any( target_arch = "wasm32" , target_env = "sgx" , target_os = "hermit" ) ) ) ]
10
- use crate :: sys:: { cvt, fd :: FileDesc } ;
10
+ use crate :: sys:: cvt;
11
11
use crate :: sys_common:: { AsInner , FromInner , IntoInner } ;
12
12
use crate :: { fmt, fs, io} ;
13
13
@@ -495,7 +495,7 @@ impl AsFd for io::PipeReader {
495
495
#[ stable( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION" ) ]
496
496
impl From < io:: PipeReader > for OwnedFd {
497
497
fn from ( pipe : io:: PipeReader ) -> Self {
498
- FileDesc :: into_inner ( pipe. 0 )
498
+ pipe. 0 . into_inner ( )
499
499
}
500
500
}
501
501
@@ -509,20 +509,20 @@ impl AsFd for io::PipeWriter {
509
509
#[ stable( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION" ) ]
510
510
impl From < io:: PipeWriter > for OwnedFd {
511
511
fn from ( pipe : io:: PipeWriter ) -> Self {
512
- FileDesc :: into_inner ( pipe. 0 )
512
+ pipe. 0 . into_inner ( )
513
513
}
514
514
}
515
515
516
516
#[ stable( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION" ) ]
517
517
impl From < OwnedFd > for io:: PipeReader {
518
518
fn from ( owned_fd : OwnedFd ) -> Self {
519
- Self ( FileDesc :: from_inner ( owned_fd) )
519
+ Self ( FromInner :: from_inner ( owned_fd) )
520
520
}
521
521
}
522
522
523
523
#[ stable( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION" ) ]
524
524
impl From < OwnedFd > for io:: PipeWriter {
525
525
fn from ( owned_fd : OwnedFd ) -> Self {
526
- Self ( FileDesc :: from_inner ( owned_fd) )
526
+ Self ( FromInner :: from_inner ( owned_fd) )
527
527
}
528
528
}
0 commit comments