mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove needless '&mut self' from node.rs.
This commit is contained in:
parent
25a6deda4d
commit
3819ebb740
4 changed files with 118 additions and 111 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue