mirror of https://github.com/stjepang/smol
Fix compilation error
This commit is contained in:
parent
b5cc4c433d
commit
ab9c9d9e4e
|
@ -254,7 +254,7 @@ impl ReactorLock<'_> {
|
||||||
// The timeout was hit so fire ready timers.
|
// The timeout was hit so fire ready timers.
|
||||||
Ok(0) => {
|
Ok(0) => {
|
||||||
self.reactor.fire_timers();
|
self.reactor.fire_timers();
|
||||||
return Ok(());
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// At least one I/O event occured.
|
// At least one I/O event occured.
|
||||||
|
@ -481,7 +481,7 @@ mod sys {
|
||||||
libc::EPOLLIN | libc::EPOLLRDHUP | libc::EPOLLHUP | libc::EPOLLERR | libc::EPOLLPRI
|
libc::EPOLLIN | libc::EPOLLRDHUP | libc::EPOLLHUP | libc::EPOLLERR | libc::EPOLLPRI
|
||||||
}
|
}
|
||||||
fn write_flags() -> EpollFlags {
|
fn write_flags() -> EpollFlags {
|
||||||
libc::EPOLLOUT | libc::EPOLLHUP | libc::EPOLLER
|
libc::EPOLLOUT | libc::EPOLLHUP | libc::EPOLLERR
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Events {
|
pub struct Events {
|
||||||
|
|
Loading…
Reference in New Issue