Undo trace impl for Mutex<T>

This commit is contained in:
Fernando Jiménez Moreno 2018-07-07 11:04:49 +02:00
parent 4cadc336a9
commit e0e1141e74

View file

@ -592,9 +592,9 @@ unsafe impl<U> JSTraceable for TypedSize2D<f32, U> {
} }
} }
unsafe impl<T: JSTraceable> JSTraceable for Mutex<T> { unsafe impl JSTraceable for Mutex<Option<SharedRt>> {
unsafe fn trace(&self, trc: *mut JSTracer) { unsafe fn trace(&self, _trc: *mut JSTracer) {
self.lock().unwrap().trace(trc); // Do nothing.
} }
} }