From 273bcfbd8e817af598fca121b4794d2d9977c2e9 Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Thu, 11 May 2017 21:30:59 +0200 Subject: [PATCH] Fix unsafe casting between PersistentLayoutData and PartialPersistentLayoutData --- components/layout/data.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/layout/data.rs b/components/layout/data.rs index 7052fed7f90..d0b798dac2a 100644 --- a/components/layout/data.rs +++ b/components/layout/data.rs @@ -6,6 +6,7 @@ use construct::ConstructionResult; use script_layout_interface::PartialPersistentLayoutData; /// Data that layout associates with a node. +#[repr(C)] pub struct PersistentLayoutData { /// Data accessed by script_layout_interface. This must be first to allow /// casting between PersistentLayoutData and PartialPersistentLayoutData.