aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-27 17:03:52 +0100
committerAnthony Ramine <nox@nox.paris>2020-03-28 14:06:08 +0100
commit400c7012b1fe73a2cf23653e4813b0f80181d069 (patch)
treeff440ab9a82595b3f4b2b347bbc6bcd0ddf122e9 /components/layout_thread/dom_wrapper.rs
parentdf0118dd104318e2d0a1400aaf880c1826769e78 (diff)
downloadservo-400c7012b1fe73a2cf23653e4813b0f80181d069.tar.gz
servo-400c7012b1fe73a2cf23653e4813b0f80181d069.zip
Make ServoLayoutNode::new return a free lifetime value
Binding the scope of the ServoLayoutNode value to the originating TrustedNodeAddress is just theater.
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 5d9757e4ad0..0adb3ed4d6d 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -138,7 +138,7 @@ impl<'ln> ServoLayoutNode<'ln> {
}
}
- pub unsafe fn new(address: &TrustedNodeAddress) -> ServoLayoutNode {
+ pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
}