aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/parallel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/layout/parallel.rs')
-rw-r--r--src/components/layout/parallel.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/layout/parallel.rs b/src/components/layout/parallel.rs
index 2583f345d02..aa184cafda6 100644
--- a/src/components/layout/parallel.rs
+++ b/src/components/layout/parallel.rs
@@ -218,7 +218,9 @@ fn recalc_style_for_node(unsafe_layout_node: UnsafeLayoutNode,
let layout_context = unsafe { &mut **proxy.user_data() };
// Get a real layout node.
- let node: LayoutNode = layout_node_from_unsafe_layout_node(&unsafe_layout_node);
+ let node: LayoutNode = unsafe {
+ layout_node_from_unsafe_layout_node(&unsafe_layout_node)
+ };
// Initialize layout data.
//
@@ -309,7 +311,9 @@ fn construct_flows(mut unsafe_layout_node: UnsafeLayoutNode,
let layout_context = unsafe { &mut **proxy.user_data() };
// Get a real layout node.
- let node: LayoutNode = layout_node_from_unsafe_layout_node(&unsafe_layout_node);
+ let node: LayoutNode = unsafe {
+ layout_node_from_unsafe_layout_node(&unsafe_layout_node)
+ };
// Construct flows for this node.
{