mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make CanGc derive Copy and Clone (#33407)
Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
637770600f
commit
747e562ff0
15 changed files with 61 additions and 72 deletions
|
@ -101,7 +101,7 @@ pub trait WorkerEventLoopMethods {
|
|||
pub fn run_worker_event_loop<T, WorkerMsg, Event>(
|
||||
worker_scope: &T,
|
||||
worker: Option<&TrustedWorkerAddress>,
|
||||
_can_gc: CanGc,
|
||||
can_gc: CanGc,
|
||||
) where
|
||||
WorkerMsg: QueuedTaskConversion + Send,
|
||||
T: WorkerEventLoopMethods<WorkerMsg = WorkerMsg, Event = Event>
|
||||
|
@ -156,7 +156,7 @@ pub fn run_worker_event_loop<T, WorkerMsg, Event>(
|
|||
};
|
||||
worker_scope
|
||||
.upcast::<GlobalScope>()
|
||||
.perform_a_microtask_checkpoint(CanGc::note());
|
||||
.perform_a_microtask_checkpoint(can_gc);
|
||||
}
|
||||
worker_scope
|
||||
.upcast::<GlobalScope>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue