mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Don’t pretend DOMRefCell is Send or Sync, after all.
This commit is contained in:
parent
fbde392c3d
commit
d15ac9be55
1 changed files with 0 additions and 7 deletions
|
@ -16,13 +16,6 @@ pub struct DOMRefCell<T> {
|
|||
value: RefCell<T>,
|
||||
}
|
||||
|
||||
// FIXME: These two impls make promises that are not quite true,
|
||||
// but maybe the debug_assert! makes it close enough.
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl<T: Send> Send for DOMRefCell<T> {}
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl<T: Sync> Sync for DOMRefCell<T> {}
|
||||
|
||||
// Functionality specific to Servo's `DOMRefCell` type
|
||||
// ===================================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue