Skip to content

Commit

Permalink
Don’t pretend DOMRefCell is Send or Sync, after all.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Oct 4, 2016
1 parent fbde392 commit d15ac9b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions components/script/dom/bindings/cell.rs
Expand Up @@ -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
// ===================================================

Expand Down

0 comments on commit d15ac9b

Please sign in to comment.