Skip to content

Commit 1faf18e

Browse files
committed
Fix Send/Sync impl of RcuCell<T>
1 parent 0e4dc8c commit 1faf18e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ pub struct RcuCell<T> {
372372
link: LinkWrapper<T>,
373373
}
374374

375-
unsafe impl<T> Send for RcuCell<T> {}
376-
unsafe impl<T> Sync for RcuCell<T> {}
375+
unsafe impl<T: Send> Send for RcuCell<T> {}
376+
unsafe impl<T: Sync> Sync for RcuCell<T> {}
377377

378378
impl<T> Default for RcuCell<T> {
379379
fn default() -> Self {

0 commit comments

Comments
 (0)