Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from JOE1994/sendsync_fix
Browse files Browse the repository at this point in the history
Add `Sync` bound to `Send` impl of `LockWeak<T>`
  • Loading branch information
hyyking authored Feb 14, 2021
2 parents c15541d + 582b622 commit 5e43ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl<T> LockWeak<T> {
}
}

unsafe impl<T> Send for LockWeak<T> {}
unsafe impl<T: Sync> Send for LockWeak<T> {}

/// Unclonable owned reference to a [`ParentArc`](struct.ParentArc.html).
///
Expand Down

0 comments on commit 5e43ee8

Please sign in to comment.