aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 32fccdeecdd..5d815517532 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -189,9 +189,7 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> {
}
fn host(&self) -> ServoLayoutElement<'lr> {
- ServoLayoutElement::from_layout_js(unsafe {
- self.shadow_root.get_host_for_layout().unwrap()
- })
+ ServoLayoutElement::from_layout_js(unsafe { self.shadow_root.get_host_for_layout() })
}
fn style_data<'a>(&self) -> Option<&'a CascadeData>