From 98fd71fd3f491a49b042ab63d0a3cc30ffbea34d Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 13 Aug 2017 02:26:45 +0200 Subject: [PATCH] NamespaceSet: rm unneeded cast --- src/element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element.rs b/src/element.rs index 2c16b3c2..86231314 100644 --- a/src/element.rs +++ b/src/element.rs @@ -138,7 +138,7 @@ impl NamespaceSet { fn set_parent(&self, parent: &Element) { let mut parent_ns = self.parent.borrow_mut(); - let new_set = ((&parent.namespaces) as &Rc).clone(); + let new_set = parent.namespaces.clone(); *parent_ns = Some(new_set); }