Skip to content

Commit

Permalink
Fix importing of IoSourceState
Browse files Browse the repository at this point in the history
It's only available when I/O features are enabled.
  • Loading branch information
Thomasdezeeuw committed Oct 23, 2023
1 parent 4034872 commit 862786b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sys/unix/selector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ pub(crate) use self::epoll::{event, Event, Events, Selector};
mod poll;

#[cfg(any(mio_unsupported_force_poll_poll, target_os = "vita"))]
pub(crate) use self::poll::{event, Event, Events, IoSourceState, Selector};
pub(crate) use self::poll::{event, Event, Events, Selector};

cfg_io_source! {
#[cfg(any(mio_unsupported_force_poll_poll, target_os = "vita"))]
pub(crate) use self::poll::IoSourceState;
}

#[cfg(all(
not(mio_unsupported_force_poll_poll),
Expand Down

0 comments on commit 862786b

Please sign in to comment.