diff options
author | Alan Somers <asomers@gmail.com> | 2021-06-12 13:12:10 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-07-07 20:49:29 -0600 |
commit | 2d796eba380e8f4e5d935b6b356c9d401917b92d (patch) | |
tree | 7b344bb84c5e8a6957f46490e151551b09ce7f1b /src/sys/aio.rs | |
parent | 6511d02414ec9dd4bcaa237336c5f74869e6c41a (diff) | |
download | nix-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/aio.rs')
-rw-r--r-- | src/sys/aio.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/aio.rs b/src/sys/aio.rs index f9d1dd87..b63affb8 100644 --- a/src/sys/aio.rs +++ b/src/sys/aio.rs @@ -983,13 +983,13 @@ impl<'a> LioCb<'a> { // aiocb is complete; collect its status and don't resubmit self.results[i] = Some(a.aio_return_unpinned()); }, - Err(Error(Errno::EAGAIN)) => { + Err(Errno::EAGAIN) => { self.list.push(a as *mut AioCb<'a> as *mut libc::aiocb); }, - Err(Error(Errno::EINPROGRESS)) => { + Err(Errno::EINPROGRESS) => { // aiocb is was successfully queued; no need to do anything }, - Err(Error(Errno::EINVAL)) => panic!( + Err(Errno::EINVAL) => panic!( "AioCb was never submitted, or already finalized"), _ => unreachable!() } |