aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-07-31 13:34:01 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-31 13:34:01 +0200
commitc38c964f1b1d2614f50863be0b896e1700b5fea8 (patch)
treecb22eaf3b552b3fac4bd06b70e42fbf3d30e369c /components/script/dom/htmltableelement.rs
parent87e7e3d429f2122ffa9ef016ba5659a3b21be91b (diff)
downloadservo-c38c964f1b1d2614f50863be0b896e1700b5fea8.tar.gz
servo-c38c964f1b1d2614f50863be0b896e1700b5fea8.zip
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r--components/script/dom/htmltableelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index c27aa17d39e..bc4724493c4 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -190,7 +190,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
if let Some(caption) = new_caption {
let node = self.upcast::<Node>();
- node.InsertBefore(caption.upcast(), node.GetFirstChild().deref())
+ node.InsertBefore(caption.upcast(), node.GetFirstChild().as_deref())
.expect("Insertion failed");
}
}
@@ -281,7 +281,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
fn filter(&self, elem: &Element, root: &Node) -> bool {
elem.is::<HTMLTableSectionElement>() &&
elem.local_name() == &local_name!("tbody") &&
- elem.upcast::<Node>().GetParentNode().deref() == Some(root)
+ elem.upcast::<Node>().GetParentNode().as_deref() == Some(root)
}
}
@@ -303,7 +303,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
.find(|n| n.is::<HTMLTableSectionElement>() && n.local_name() == &local_name!("tbody"));
let reference_element = last_tbody.and_then(|t| t.upcast::<Node>().GetNextSibling());
- node.InsertBefore(tbody.upcast(), reference_element.deref())
+ node.InsertBefore(tbody.upcast(), reference_element.as_deref())
.expect("Insertion failed");
tbody
}