diff options
Diffstat (limited to 'tokio/src/io/poll_evented.rs')
-rw-r--r-- | tokio/src/io/poll_evented.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tokio/src/io/poll_evented.rs b/tokio/src/io/poll_evented.rs index f253f0bb..66a26346 100644 --- a/tokio/src/io/poll_evented.rs +++ b/tokio/src/io/poll_evented.rs @@ -124,13 +124,7 @@ impl<E: Source> PollEvented<E> { /// Returns a shared reference to the underlying I/O object this readiness /// stream is wrapping. - #[cfg(any( - feature = "process", - feature = "tcp", - feature = "udp", - feature = "uds", - feature = "signal" - ))] + #[cfg(any(feature = "net", feature = "process", feature = "signal"))] pub(crate) fn get_ref(&self) -> &E { self.io.as_ref().unwrap() } |