aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/nodelist.rs
diff options
context:
space:
mode:
authorTim Taubert <tim@timtaubert.de>2014-10-09 13:12:02 +0200
committerTim Taubert <tim@timtaubert.de>2014-10-09 15:01:54 +0200
commit35f8270c649e932e623f847468c4ddf142df287a (patch)
tree4a2f646db74dc7202247b3f4dc59c3cbb7e39021 /components/script/dom/nodelist.rs
parent15b508ac10d0e98ba10474b6ab091017ae95804e (diff)
downloadservo-35f8270c649e932e623f847468c4ddf142df287a.tar.gz
servo-35f8270c649e932e623f847468c4ddf142df287a.zip
Remove unnecessary `deref()`s (fixes #3586)
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r--components/script/dom/nodelist.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs
index 802cc76f78d..598ebfa932b 100644
--- a/components/script/dom/nodelist.rs
+++ b/components/script/dom/nodelist.rs
@@ -53,7 +53,7 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> {
Simple(ref elems) => elems.len() as u32,
Children(ref node) => {
let node = node.root();
- node.deref().children().count() as u32
+ node.children().count() as u32
}
}
}
@@ -64,7 +64,7 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> {
Simple(ref elems) => Some(Temporary::new(elems[index as uint].clone())),
Children(ref node) => {
let node = node.root();
- node.deref().children().nth(index as uint)
+ node.children().nth(index as uint)
.map(|child| Temporary::from_rooted(child))
}
}