mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
NamespaceSet: rm unneeded cast
This commit is contained in:
parent
26f03c27ed
commit
98fd71fd3f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue