diff options
Diffstat (limited to 'components/script/dom/worklet.rs')
-rw-r--r-- | components/script/dom/worklet.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/worklet.rs b/components/script/dom/worklet.rs index 398710ee558..196864f5527 100644 --- a/components/script/dom/worklet.rs +++ b/components/script/dom/worklet.rs @@ -417,7 +417,7 @@ struct WorkletThreadInit { } /// A thread for executing worklets. -#[must_root] +#[unrooted_must_root_lint::must_root] struct WorkletThread { /// Which role the thread is currently playing role: WorkletThreadRole, @@ -477,7 +477,7 @@ impl WorkletThread { global_init: init.global_init, global_scopes: HashMap::new(), control_buffer: None, - runtime: new_rt_and_cx(), + runtime: new_rt_and_cx(None), should_gc: false, gc_threshold: MIN_GC_THRESHOLD, }); |