diff --git a/src/sys/wasi/mod.rs b/src/sys/wasi/mod.rs index e744fe2df..b2a998abe 100644 --- a/src/sys/wasi/mod.rs +++ b/src/sys/wasi/mod.rs @@ -112,6 +112,7 @@ impl Selector { pub(crate) fn try_clone(&self) -> io::Result { Ok(Selector { + #[cfg(all(debug_assertions, feature = "net"))] id: self.id, subscriptions: self.subscriptions.clone(), })