Browse Source

fix build

pull/552/head
Marcin Mielniczuk 5 years ago
parent
commit
5b9272f2a6
No known key found for this signature in database GPG Key ID: 2CF0CE66660B8CC9
  1. 6
      crates/wasi-common/src/sys/unix/hostcalls_impl/misc.rs
  2. 6
      crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs

6
crates/wasi-common/src/sys/unix/hostcalls_impl/misc.rs

@ -60,12 +60,6 @@ pub(crate) fn poll_oneoff(
Errno,
};
trace!(
"poll_oneoff_impl: timeout={:?}, fd_events={:?}",
timeout,
fd_events
);
if fd_events.is_empty() && timeout.is_none() {
return Ok(());
}

6
crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs

@ -224,12 +224,6 @@ pub(crate) fn poll_oneoff(
use std::fs::Metadata;
use std::thread;
trace!(
"poll_oneoff_impl: timeout={:?}, fd_events={:?}",
timeout,
fd_events
);
let timeout = timeout
.map(|event| {
event

Loading…
Cancel
Save