about summary refs log tree commit diff
path: root/library/std/src/sys/unsupported/process.rs
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-04-14 03:19:01 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-04-20 20:53:07 +0200
commitd45e1314f36ac249e8fb7d9564362ac8f94e49be (patch)
tree25a3341090f572e93a857c4f8566f75168eb8ff5 /library/std/src/sys/unsupported/process.rs
parent389fef3b304bd4f196a337797591d9f8db998a62 (diff)
downloadrust-d45e1314f36ac249e8fb7d9564362ac8f94e49be.tar.gz
rust-d45e1314f36ac249e8fb7d9564362ac8f94e49be.zip
Change uses of never type
Diffstat (limited to 'library/std/src/sys/unsupported/process.rs')
-rw-r--r--library/std/src/sys/unsupported/process.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/std/src/sys/unsupported/process.rs b/library/std/src/sys/unsupported/process.rs
index f777e40873f..38ac0a1ddd5 100644
--- a/library/std/src/sys/unsupported/process.rs
+++ b/library/std/src/sys/unsupported/process.rs
@@ -98,17 +98,17 @@ pub struct ExitStatus(!);
 
 impl ExitStatus {
     pub fn success(&self) -> bool {
-        match self.0 {}
+        self.0
     }
 
     pub fn code(&self) -> Option<i32> {
-        match self.0 {}
+        self.0
     }
 }
 
 impl Clone for ExitStatus {
     fn clone(&self) -> ExitStatus {
-        match self.0 {}
+        self.0
     }
 }
 
@@ -116,7 +116,7 @@ impl Copy for ExitStatus {}
 
 impl PartialEq for ExitStatus {
     fn eq(&self, _other: &ExitStatus) -> bool {
-        match self.0 {}
+        self.0
     }
 }
 
@@ -124,13 +124,13 @@ impl Eq for ExitStatus {}
 
 impl fmt::Debug for ExitStatus {
     fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        match self.0 {}
+        self.0
     }
 }
 
 impl fmt::Display for ExitStatus {
     fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        match self.0 {}
+        self.0
     }
 }
 
@@ -150,19 +150,19 @@ pub struct Process(!);
 
 impl Process {
     pub fn id(&self) -> u32 {
-        match self.0 {}
+        self.0
     }
 
     pub fn kill(&mut self) -> io::Result<()> {
-        match self.0 {}
+        self.0
     }
 
     pub fn wait(&mut self) -> io::Result<ExitStatus> {
-        match self.0 {}
+        self.0
     }
 
     pub fn try_wait(&mut self) -> io::Result<Option<ExitStatus>> {
-        match self.0 {}
+        self.0
     }
 }