Skip to content

Commit

Permalink
Add 'T: Send' for 'impl Send for Bucket2<T>'
Browse files Browse the repository at this point in the history
Fixes issue #2
  • Loading branch information
JOE1994 committed Dec 4, 2020
1 parent 79b1a5c commit 15b2828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncpool/src/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl<T> Drop for Bucket2<T> {
}
}

unsafe impl<T> Send for Bucket2<T> {}
unsafe impl<T: Send> Send for Bucket2<T> {}

pub(crate) struct RingBucket<T> {
/// The actual data store. Data are stored in heap and not managed by the runtime, so we must
Expand Down

0 comments on commit 15b2828

Please # to comment.