From 498288cd3148e865f971125c16afc1aea6a70651 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Thu, 23 Nov 2023 15:20:46 +0100 Subject: [PATCH] chore: fix docsrs without net feature (#6166) --- tokio/src/doc/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio/src/doc/mod.rs b/tokio/src/doc/mod.rs index 8f11de20780..0279630c9df 100644 --- a/tokio/src/doc/mod.rs +++ b/tokio/src/doc/mod.rs @@ -20,6 +20,7 @@ #[derive(Debug)] pub enum NotDefinedHere {} +#[cfg(feature = "net")] impl mio::event::Source for NotDefinedHere { fn register( &mut self, @@ -42,4 +43,5 @@ impl mio::event::Source for NotDefinedHere { } } +#[cfg(feature = "net")] pub mod os;