Stop using UnsafeNode in the parallel traversal.

\o/ \o/ \o/
This commit is contained in:
Bobby Holley 2016-12-21 12:50:45 -08:00
parent b3cb786c81
commit ea6a61af59
2 changed files with 29 additions and 19 deletions

View file

@ -269,7 +269,7 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
/// (including but not limited to the traversal) where we need to send DOM
/// objects to other threads.
#[derive(Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub struct SendNode<N: TNode>(N);
unsafe impl<N: TNode> Send for SendNode<N> {}
impl<N: TNode> SendNode<N> {