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

Add Sync bound to Send impl of LockWeak<T> #6

Merged
merged 1 commit into from
Feb 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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