mirror of
https://github.com/servo/servo.git
synced 2025-07-31 19:20:22 +01:00
Undo trace impl for Mutex<T>
This commit is contained in:
parent
4cadc336a9
commit
e0e1141e74
1 changed files with 3 additions and 3 deletions
|
@ -592,9 +592,9 @@ unsafe impl<U> JSTraceable for TypedSize2D<f32, U> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl<T: JSTraceable> JSTraceable for Mutex<T> {
|
||||
unsafe fn trace(&self, trc: *mut JSTracer) {
|
||||
self.lock().unwrap().trace(trc);
|
||||
unsafe impl JSTraceable for Mutex<Option<SharedRt>> {
|
||||
unsafe fn trace(&self, _trc: *mut JSTracer) {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue