diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 2a968b265..04e0b2000 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -54,6 +54,7 @@ cfg_os_poll! { #[cfg(unix)] cfg_os_poll! { mod unix; + #[allow(unused_imports)] pub use self::unix::*; } @@ -76,6 +77,7 @@ cfg_not_os_poll! { #[cfg(unix)] cfg_any_os_ext! { mod unix; + #[cfg(feature = "os-ext")] pub use self::unix::SourceFd; } diff --git a/src/sys/unix/mod.rs b/src/sys/unix/mod.rs index fe349846c..bd2fe7d76 100644 --- a/src/sys/unix/mod.rs +++ b/src/sys/unix/mod.rs @@ -18,6 +18,7 @@ cfg_os_poll! { pub(crate) use self::selector::{event, Event, Events, Selector}; mod sourcefd; + #[cfg(feature = "os-ext")] pub use self::sourcefd::SourceFd; mod waker; @@ -119,6 +120,7 @@ cfg_not_os_poll! { cfg_any_os_ext! { mod sourcefd; + #[cfg(feature = "os-ext")] pub use self::sourcefd::SourceFd; } }