Remove some extraneous &* pairs

This commit is contained in:
Cameron Zwarich 2014-09-19 21:32:02 -07:00
parent d768ee77ad
commit 8aec08074c
4 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ impl Comment {
pub fn Constructor(global: &GlobalRef, data: DOMString) -> Fallible<Temporary<Comment>> {
let document = global.as_window().Document().root();
Ok(Comment::new(data, *&*document))
Ok(Comment::new(data, *document))
}
}

View file

@ -317,8 +317,8 @@ impl Document {
DocumentBinding::Wrap).root();
let node: JSRef<Node> = NodeCast::from_ref(*document);
node.set_owner_doc(*&*document);
Temporary::from_rooted(*&*document)
node.set_owner_doc(*document);
Temporary::from_rooted(*document)
}
}

View file

@ -154,7 +154,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
fn GetContentWindow(self) -> Option<Temporary<Window>> {
self.size.deref().get().and_then(|size| {
let window = window_from_node(self).root();
let children = &*window.deref().page.children.deref().borrow();
let children = window.deref().page.children.deref().borrow();
let child = children.iter().find(|child| {
child.subpage_id.unwrap() == size.subpage_id
});

View file

@ -67,8 +67,8 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
match old_caption {
Some(htmlelem) => {
let htmlelem_jsref = &*htmlelem.root();
let old_caption_node: JSRef<Node> = NodeCast::from_ref(*htmlelem_jsref);
let htmlelem_root = htmlelem.root();
let old_caption_node: JSRef<Node> = NodeCast::from_ref(*htmlelem_root);
assert!(node.RemoveChild(old_caption_node).is_ok());
}
None => ()