diff options
Diffstat (limited to 'src/sys/timerfd.rs')
-rw-r--r-- | src/sys/timerfd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/timerfd.rs b/src/sys/timerfd.rs index e42fffdf..3ae4ca32 100644 --- a/src/sys/timerfd.rs +++ b/src/sys/timerfd.rs @@ -259,7 +259,7 @@ impl TimerFd { loop { if let Err(e) = read(self.fd, &mut [0u8; 8]) { match e { - Error::Sys(Errno::EINTR) => continue, + Error(Errno::EINTR) => continue, _ => return Err(e), } } else { @@ -277,7 +277,7 @@ impl Drop for TimerFd { let result = Errno::result(unsafe { libc::close(self.fd) }); - if let Err(Error::Sys(Errno::EBADF)) = result { + if let Err(Error(Errno::EBADF)) = result { panic!("close of TimerFd encountered EBADF"); } } |