Skip to content

Commit

Permalink
Add required Sync/Send traits for impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Apr 27, 2024
1 parent 4777a5f commit 753368a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@ pub struct ReceiveSignals<D: Descriptor = File> {
}

// SAFETY: `!Sync` due to `UnsafeCell`, but it's actually `Sync`.
unsafe impl<D: Descriptor> Sync for ReceiveSignals<D> {}
unsafe impl<D: Descriptor> Send for ReceiveSignals<D> {}
unsafe impl<D: Descriptor + Sync> Sync for ReceiveSignals<D> {}
unsafe impl<D: Descriptor + Send> Send for ReceiveSignals<D> {}

impl<D: Descriptor> ReceiveSignals<D> {
/// Poll the next signal.
Expand Down

0 comments on commit 753368a

Please sign in to comment.