diff options
Diffstat (limited to 'library/std/src/sys/pal/unsupported/pipe.rs')
| -rw-r--r-- | library/std/src/sys/pal/unsupported/pipe.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unsupported/pipe.rs b/library/std/src/sys/pal/unsupported/pipe.rs index d7d8f297ae5..781eafe2f1a 100644 --- a/library/std/src/sys/pal/unsupported/pipe.rs +++ b/library/std/src/sys/pal/unsupported/pipe.rs @@ -1,8 +1,21 @@ -use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut}; +use crate::{ + fmt, + io::{self, BorrowedCursor, IoSlice, IoSliceMut}, +}; pub struct AnonPipe(!); +impl fmt::Debug for AnonPipe { + fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0 + } +} + impl AnonPipe { + pub fn try_clone(&self) -> io::Result<Self> { + self.0 + } + pub fn read(&self, _buf: &mut [u8]) -> io::Result<usize> { self.0 } |
