mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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.
This commit is contained in:
parent
9d5f09e09c
commit
88a1cbb28b
7 changed files with 47 additions and 35 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue