diff options
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 9c06a91a31b..fad55bb4a88 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -436,9 +436,9 @@ pub fn parse_html(page: &Page, append_child: |parent: hubbub::NodeDataPtr, child: hubbub::NodeDataPtr| { unsafe { debug!("append child {:x} {:x}", parent, child); - let mut child = from_hubbub_node(child).root(); - let mut parent: Root<Node> = from_hubbub_node(parent).root(); - assert!(parent.AppendChild(&mut *child).is_ok()); + let child: Root<Node> = from_hubbub_node(child).root(); + let parent: Root<Node> = from_hubbub_node(parent).root(); + assert!(parent.deref().AppendChild(&*child).is_ok()); } child }, |