diff --git a/src/event/event_api.rs b/src/event/event_api.rs index 19afc91d..b118257f 100644 --- a/src/event/event_api.rs +++ b/src/event/event_api.rs @@ -1,6 +1,7 @@ mod types; mod api; #[cfg(feature = "event-stream")] +#[cfg(unix)] pub(crate) mod waker; pub(crate) mod filter; pub(crate) mod read; diff --git a/src/event/event_api/source/unix/mio.rs b/src/event/event_api/source/unix/mio.rs index 744b9111..923e00f4 100644 --- a/src/event/event_api/source/unix/mio.rs +++ b/src/event/event_api/source/unix/mio.rs @@ -7,7 +7,7 @@ use crate::Result; #[cfg(feature = "event-stream")] use crate::event::sys::Waker; -use crate::terminal::file_descriptor::{tty_fd, FileDesc}; +use crate::terminal::sys::file_descriptor::{tty_fd, FileDesc}; use crate::event::{ source::EventSource, sys::unix::{ diff --git a/src/event/event_api/types.rs b/src/event/event_api/types.rs index edd2af0f..401c8345 100644 --- a/src/event/event_api/types.rs +++ b/src/event/event_api/types.rs @@ -82,7 +82,7 @@ impl Command for PushKeyboardEnhancementFlags { } #[cfg(windows)] - fn execute_winapi(&self) -> Result<()> { + fn execute_winapi(&self) -> crate::Result<()> { use std::io; Err(io::Error::new(