Change uses of never type

This commit is contained in:
Christiaan Dirkx
2021-04-14 03:19:01 +02:00
parent 389fef3b30
commit d45e1314f3
15 changed files with 198 additions and 196 deletions

View File

@@ -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
}
}