remove unsafe sync impl

This commit is contained in:
Evan Almloff committed 2022-12-30 15:23:04 -06:00
1 parent 845f2fb7a9
commit c1fc00ed53
1 file changed
-2
-2
View File
@@ -225,8 +225,6 @@ pub struct ChildNodeIteratorMut<'a, T, Tr: TreeView<T> + 'a> {
node_type: PhantomData<T>,
}
unsafe impl<'a, T, Tr: TreeView<T> + 'a> Sync for ChildNodeIteratorMut<'a, T, Tr> {}
impl<'a, T, Tr: TreeView<T>> ChildNodeIteratorMut<'a, T, Tr> {
fn tree_mut(&mut self) -> &'a mut Tr {
unsafe { &mut *self.tree }