diff options
Diffstat (limited to 'src/components/layout/util.rs')
-rw-r--r-- | src/components/layout/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/layout/util.rs b/src/components/layout/util.rs index 4f05a18f5ce..a0e466e8875 100644 --- a/src/components/layout/util.rs +++ b/src/components/layout/util.rs @@ -67,7 +67,7 @@ pub struct LayoutDataWrapper { /// A trait that allows access to the layout data of a DOM node. pub trait LayoutDataAccess { /// Borrows the layout data without checks. - unsafe fn borrow_layout_data_unchecked(&self) -> *Option<LayoutDataWrapper>; + unsafe fn borrow_layout_data_unchecked(&self) -> *const Option<LayoutDataWrapper>; /// Borrows the layout data immutably. Fails on a conflicting borrow. fn borrow_layout_data<'a>(&'a self) -> Ref<'a,Option<LayoutDataWrapper>>; /// Borrows the layout data mutably. Fails on a conflicting borrow. @@ -76,7 +76,7 @@ pub trait LayoutDataAccess { impl<'ln> LayoutDataAccess for LayoutNode<'ln> { #[inline(always)] - unsafe fn borrow_layout_data_unchecked(&self) -> *Option<LayoutDataWrapper> { + unsafe fn borrow_layout_data_unchecked(&self) -> *const Option<LayoutDataWrapper> { mem::transmute(self.get().layout_data.borrow_unchecked()) } |