summaryrefslogtreecommitdiff
path: root/src/sys/signalfd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/signalfd.rs')
-rw-r--r--src/sys/signalfd.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sys/signalfd.rs b/src/sys/signalfd.rs
index 0da9187e..52027d36 100644
--- a/src/sys/signalfd.rs
+++ b/src/sys/signalfd.rs
@@ -127,8 +127,7 @@ impl Iterator for SignalFd {
fn next(&mut self) -> Option<Self::Item> {
match self.read_signal() {
Ok(Some(sig)) => Some(sig),
- Ok(None) => None,
- Err(..) => None,
+ Ok(None) | Err(_) => None,
}
}
}