summaryrefslogtreecommitdiff
path: root/src/sys/signalfd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-06-12 13:12:10 -0600
committerAlan Somers <asomers@gmail.com>2021-07-07 20:49:29 -0600
commit2d796eba380e8f4e5d935b6b356c9d401917b92d (patch)
tree7b344bb84c5e8a6957f46490e151551b09ce7f1b /src/sys/signalfd.rs
parent6511d02414ec9dd4bcaa237336c5f74869e6c41a (diff)
downloadnix-2d796eba380e8f4e5d935b6b356c9d401917b92d.zip
Collapse Error into Errno
Now that Nix's weird error types are eliminated, there's no reason not to simply use Errno as the Error type.
Diffstat (limited to 'src/sys/signalfd.rs')
-rw-r--r--src/sys/signalfd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/signalfd.rs b/src/sys/signalfd.rs
index 32245bc6..49811a1a 100644
--- a/src/sys/signalfd.rs
+++ b/src/sys/signalfd.rs
@@ -108,7 +108,7 @@ impl SignalFd {
match res {
Ok(SIGNALFD_SIGINFO_SIZE) => Ok(Some(unsafe { mem::transmute(buffer.assume_init()) })),
Ok(_) => unreachable!("partial read on signalfd"),
- Err(Error(Errno::EAGAIN)) => Ok(None),
+ Err(Errno::EAGAIN) => Ok(None),
Err(error) => Err(error)
}
}