diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-14 00:03:57 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-14 00:03:57 +0200 |
commit | b505c9e94817847e19f22854b2ee4258f66f18d2 (patch) | |
tree | fad6d01d0f273b36823f70bda152310fa12f7a28 /components/layout/inline.rs | |
parent | 4c5d6fd8345f301be4aafe2dba71cdf2de0ab01e (diff) | |
download | servo-b505c9e94817847e19f22854b2ee4258f66f18d2.tar.gz servo-b505c9e94817847e19f22854b2ee4258f66f18d2.zip |
Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index e04ede22470..e6f23afae8f 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -861,8 +861,12 @@ impl InlineFragments { } } +#[allow(unsafe_code)] +unsafe impl ::flow::HasBaseFlow for InlineFlow {} + /// Flows for inline layout. #[derive(Serialize)] +#[repr(C)] pub struct InlineFlow { /// Data common to all flows. pub base: BaseFlow, |