mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Return a LayoutNode with a limited lifetime from layout_node_from_unsafe_layout_node (fixes #3044).
This commit is contained in:
parent
4e015b5378
commit
2f019f2d88
1 changed files with 1 additions and 3 deletions
|
@ -1076,9 +1076,7 @@ pub fn layout_node_to_unsafe_layout_node(node: &LayoutNode) -> UnsafeLayoutNode
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME(#3044): This should be updated to use a real lifetime instead of
|
||||
// faking one.
|
||||
pub unsafe fn layout_node_from_unsafe_layout_node(node: &UnsafeLayoutNode) -> LayoutNode<'static> {
|
||||
pub unsafe fn layout_node_from_unsafe_layout_node(node: &UnsafeLayoutNode) -> LayoutNode {
|
||||
let (node, _) = *node;
|
||||
mem::transmute(node)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue