Skip to content

Commit

Permalink
Remove the transparent attribute on Event and Interests
Browse files Browse the repository at this point in the history
For Event is was needed to safety create a pointer to the internal
system event, but this is no longer used.

For Interests it was never needed.
  • Loading branch information
Thomasdezeeuw committed Nov 18, 2019
1 parent ff1b9f2 commit ac0515c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/event/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use std::fmt;
/// [`Poll::poll`]: crate::Poll::poll
/// [`Poll`]: crate::Poll
/// [`Token`]: crate::Token
#[repr(transparent)]
pub struct Event {
inner: sys::Event,
}
Expand Down
1 change: 0 additions & 1 deletion src/interests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use std::{fmt, ops};
/// [readable]: Interests::READABLE
/// [`poll`]: crate::Poll::poll
#[derive(Copy, PartialEq, Eq, Clone, PartialOrd, Ord)]
#[repr(transparent)]
pub struct Interests(NonZeroU8);

// These must be unique.
Expand Down

0 comments on commit ac0515c

Please sign in to comment.