Skip to content

Commit

Permalink
Remove unneeded traits on sys types (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mobilecoin authored Feb 1, 2023
2 parents 5652805 + d141270 commit 3e05653
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions sync/src/sys/locks/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ pub(crate) struct Condvar {
inner: SgxCondvar,
}

unsafe impl Send for Condvar {}
unsafe impl Sync for Condvar {}

impl Condvar {
pub const fn new() -> Self {
Self {
Expand Down
3 changes: 0 additions & 3 deletions sync/src/sys/locks/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ pub(crate) struct Mutex {
inner: SgxMutex,
}

unsafe impl Send for Mutex {}
unsafe impl Sync for Mutex {}

impl Mutex {
/// Create a new Mutex
pub(crate) const fn new() -> Mutex {
Expand Down
3 changes: 0 additions & 3 deletions sync/src/sys/locks/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ pub(crate) struct RwLock {
inner: SgxRwLock,
}

unsafe impl Send for RwLock {}
unsafe impl Sync for RwLock {}

impl RwLock {
/// Create a new [`RwLock`]
pub const fn new() -> RwLock {
Expand Down

0 comments on commit 3e05653

Please sign in to comment.