Closed 12101111 closed 3 years ago
I'm not 100% sure but it seems okay to implement Sync
for Node<V>
.
You need to implement it like,
unsafe impl<V: Sync> Sync for Node<V> {}
unsafe impl<V: Send> Send for Node<V> {}
which is something I got wrong initially. It's not unconditionally Send or Sync, only if V is also
@leshow You're right. Thank you for your advice!
In another word, is it safe to add
unsafe impl<V> Sync for Node<V> {}
?