Make the impl of JSTraceable for LayoutRPC sound with a Send bound

This commit is contained in:
Anthony Ramine 2016-12-06 10:31:52 -10:00
parent e8c9c12b6e
commit b40681e231
2 changed files with 4 additions and 3 deletions

View file

@ -391,7 +391,8 @@ unsafe impl<T> JSTraceable for IpcSender<T> where T: Deserialize + Serialize {
}
}
unsafe impl JSTraceable for Box<LayoutRPC + 'static> {
// Safe thanks to the Send bound.
unsafe impl JSTraceable for Box<LayoutRPC + Send + 'static> {
#[inline]
unsafe fn trace(&self, _: *mut JSTracer) {
// Do nothing