diff options
Diffstat (limited to 'src/sys/epoll.rs')
-rw-r--r-- | src/sys/epoll.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs index c6c2eab3..3ed1dd72 100644 --- a/src/sys/epoll.rs +++ b/src/sys/epoll.rs @@ -7,7 +7,7 @@ use std::mem; use ::Error; libc_bitflags!( - pub struct EpollFlags: libc::c_int { + pub struct EpollFlags: c_int { EPOLLIN; EPOLLPRI; EPOLLOUT; @@ -42,6 +42,7 @@ libc_bitflags!{ } } +#[allow(missing_debug_implementations)] #[derive(Clone, Copy)] #[repr(C)] pub struct EpollEvent { @@ -58,7 +59,7 @@ impl EpollEvent { } pub fn events(&self) -> EpollFlags { - EpollFlags::from_bits(self.event.events as libc::c_int).unwrap() + EpollFlags::from_bits(self.event.events as c_int).unwrap() } pub fn data(&self) -> u64 { |