NamespaceSet: rm unneeded cast

This commit is contained in:
Astro 2017-08-13 02:26:45 +02:00
parent 26f03c27ed
commit 98fd71fd3f

View file

@ -138,7 +138,7 @@ impl NamespaceSet {
fn set_parent(&self, parent: &Element) { fn set_parent(&self, parent: &Element) {
let mut parent_ns = self.parent.borrow_mut(); let mut parent_ns = self.parent.borrow_mut();
let new_set = ((&parent.namespaces) as &Rc<NamespaceSet>).clone(); let new_set = parent.namespaces.clone();
*parent_ns = Some(new_set); *parent_ns = Some(new_set);
} }