Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
add send/sync bounds to prevent data race
Browse files Browse the repository at this point in the history
  • Loading branch information
JOE1994 authored and darconeous committed Jun 4, 2021
1 parent b76d917 commit 71245d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async-coap/src/arc_guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ impl<RC, T> ArcGuard<RC, T> {
}
}

unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
unsafe impl<RC, T: Sync> Sync for ArcGuard<RC, T> {}
unsafe impl<RC: Send, T: Send> Send for ArcGuard<RC, T> {}
unsafe impl<RC: Sync, T: Sync> Sync for ArcGuard<RC, T> {}

impl<RC, T> Deref for ArcGuard<RC, T> {
type Target = T;
Expand Down

0 comments on commit 71245d4

Please sign in to comment.