From c9e33691034be4df491fed7b24b5eeb4d20f8d7d Mon Sep 17 00:00:00 2001 From: Richard Zak Date: Wed, 15 Jun 2022 16:12:25 -0400 Subject: [PATCH] fix: don't `try_clone()` a debug-only field Signed-off-by: Richard Zak --- src/sys/wasi/mod.rs | 1 + 1 file changed, 1 insertion(+) 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(), })