diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-14 03:19:01 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-20 20:53:07 +0200 |
| commit | d45e1314f36ac249e8fb7d9564362ac8f94e49be (patch) | |
| tree | 25a3341090f572e93a857c4f8566f75168eb8ff5 /library/std/src/sys/unsupported/pipe.rs | |
| parent | 389fef3b304bd4f196a337797591d9f8db998a62 (diff) | |
| download | rust-d45e1314f36ac249e8fb7d9564362ac8f94e49be.tar.gz rust-d45e1314f36ac249e8fb7d9564362ac8f94e49be.zip | |
Change uses of never type
Diffstat (limited to 'library/std/src/sys/unsupported/pipe.rs')
| -rw-r--r-- | library/std/src/sys/unsupported/pipe.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/std/src/sys/unsupported/pipe.rs b/library/std/src/sys/unsupported/pipe.rs index 7ea46990d77..25514c2322f 100644 --- a/library/std/src/sys/unsupported/pipe.rs +++ b/library/std/src/sys/unsupported/pipe.rs @@ -4,31 +4,31 @@ pub struct AnonPipe(!); impl AnonPipe { pub fn read(&self, _buf: &mut [u8]) -> io::Result<usize> { - match self.0 {} + self.0 } pub fn read_vectored(&self, _bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { - match self.0 {} + self.0 } pub fn is_read_vectored(&self) -> bool { - match self.0 {} + self.0 } pub fn write(&self, _buf: &[u8]) -> io::Result<usize> { - match self.0 {} + self.0 } pub fn write_vectored(&self, _bufs: &[IoSlice<'_>]) -> io::Result<usize> { - match self.0 {} + self.0 } pub fn is_write_vectored(&self) -> bool { - match self.0 {} + self.0 } pub fn diverge(&self) -> ! { - match self.0 {} + self.0 } } |
