diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:43:58 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:43:58 +0200 |
commit | b45f1918d16a4c94a18968dc6b69b74408f71083 (patch) | |
tree | f255ab743ffb86040631275e90330625973dceff /components/script/dom/nodelist.rs | |
parent | 134fd1876718e9e547873c5d1acf140ae5d6aaac (diff) | |
download | servo-b45f1918d16a4c94a18968dc6b69b74408f71083.tar.gz servo-b45f1918d16a4c94a18968dc6b69b74408f71083.zip |
Remove JS::from_rooted
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 2d1bbe363a7..fc4e13d6fbe 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -43,7 +43,7 @@ impl NodeList { pub fn new_simple_list<T>(window: &Window, iter: T) -> Root<NodeList> where T: Iterator<Item=Root<Node>> { - NodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_rooted(&r)).collect())) + NodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_ref(&*r)).collect())) } pub fn new_child_list(window: &Window, node: &Node) -> Root<NodeList> { |