diff --git a/src/sys/shell/selector.rs b/src/sys/shell/selector.rs index 83456ef87..c31a7d360 100644 --- a/src/sys/shell/selector.rs +++ b/src/sys/shell/selector.rs @@ -21,7 +21,7 @@ impl Selector { } #[cfg(unix)] -cfg_any_os_ext! { +cfg_os_ext! { use crate::{Interest, Token}; impl Selector { diff --git a/src/sys/unix/mod.rs b/src/sys/unix/mod.rs index 6c0c8850e..93bc78924 100644 --- a/src/sys/unix/mod.rs +++ b/src/sys/unix/mod.rs @@ -106,6 +106,7 @@ cfg_os_poll! { // NOTE: the `Waker` type is expected in the selector module as the // `poll(2)` implementation needs to do some special stuff. + #[allow(unused)] mod sourcefd; #[cfg(feature = "os-ext")] pub use self::sourcefd::SourceFd; @@ -156,9 +157,8 @@ cfg_os_poll! { } cfg_not_os_poll! { - cfg_any_os_ext! { + cfg_os_ext! { mod sourcefd; - #[cfg(feature = "os-ext")] pub use self::sourcefd::SourceFd; } }