mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix borrow_unchecked in LayoutDataRef
This commit is contained in:
parent
c2ed42d2bc
commit
7772984e0b
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ impl LayoutDataRef {
|
|||
#[inline]
|
||||
#[allow(unsafe_code)]
|
||||
pub unsafe fn borrow_unchecked(&self) -> *const Option<LayoutData> {
|
||||
mem::transmute(&self.data_cell)
|
||||
self.data_cell.as_unsafe_cell().get() as *const _
|
||||
}
|
||||
|
||||
/// Borrows the layout data immutably. This function is *not* thread-safe.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue