Fix compilation error

This commit is contained in:
Stjepan Glavina 2020-06-19 17:06:33 +02:00
parent b5cc4c433d
commit ab9c9d9e4e
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ impl ReactorLock<'_> {
// The timeout was hit so fire ready timers.
Ok(0) => {
self.reactor.fire_timers();
return Ok(());
Ok(())
}
// At least one I/O event occured.
@ -481,7 +481,7 @@ mod sys {
libc::EPOLLIN | libc::EPOLLRDHUP | libc::EPOLLHUP | libc::EPOLLERR | libc::EPOLLPRI
}
fn write_flags() -> EpollFlags {
libc::EPOLLOUT | libc::EPOLLHUP | libc::EPOLLER
libc::EPOLLOUT | libc::EPOLLHUP | libc::EPOLLERR
}
pub struct Events {