diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-10-14 16:20:47 -0700 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-10-15 14:02:45 -0700 |
commit | 88a1cbb28be8721c70237b603356e7863892b798 (patch) | |
tree | e691917eb41e7c266a782cec080c03c84dba8903 /components/script/dom/nodelist.rs | |
parent | 9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c (diff) | |
download | servo-88a1cbb28be8721c70237b603356e7863892b798.tar.gz servo-88a1cbb28be8721c70237b603356e7863892b798.zip |
Stop implementing Copy for JS<T>.
A copy of a JS<T> doesn't have the rooting properties of the original,
so it makes no sense for it to implement Copy.
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 d997cad2558..dfea6e98eb4 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -64,7 +64,7 @@ impl NodeListMethods for NodeList { fn Item(&self, index: u32) -> Option<Root<Node>> { match self.list_type { NodeListType::Simple(ref elems) => { - elems.get(index as usize).map(|node| Root::from_rooted(*node)) + elems.get(index as usize).map(|node| node.root()) }, NodeListType::Children(ref list) => list.item(index), } |