aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/nodelist.rs
diff options
context:
space:
mode:
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 248984746db..82fd3be59d6 100644
--- a/components/script/dom/nodelist.rs
+++ b/components/script/dom/nodelist.rs
@@ -132,7 +132,7 @@ impl ChildrenList {
let last_visited = node.GetFirstChild();
ChildrenList {
node: Dom::from_ref(node),
- last_visited: MutNullableDom::new(last_visited.deref()),
+ last_visited: MutNullableDom::new(last_visited.as_deref()),
last_index: Cell::new(0u32),
}
}
@@ -315,7 +315,7 @@ impl ChildrenList {
}
fn reset(&self) {
- self.last_visited.set(self.node.GetFirstChild().deref());
+ self.last_visited.set(self.node.GetFirstChild().as_deref());
self.last_index.set(0u32);
}
}