Skip to content

Commit

Permalink
fix: don't try_clone() a debug-only field
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <richard@profian.com>
  • Loading branch information
rjzak authored and Thomasdezeeuw committed Jun 15, 2022
1 parent a7289c7 commit c9e3369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/wasi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ impl Selector {

pub(crate) fn try_clone(&self) -> io::Result<Selector> {
Ok(Selector {
#[cfg(all(debug_assertions, feature = "net"))]
id: self.id,
subscriptions: self.subscriptions.clone(),
})
Expand Down

0 comments on commit c9e3369

Please sign in to comment.