aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r--components/script/dom/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs
index 9c3525c9aa3..34e4cd5a900 100644
--- a/components/script/dom/worker.rs
+++ b/components/script/dom/worker.rs
@@ -306,7 +306,7 @@ impl WorkerMethods<crate::DomTypeHolder> for Worker {
}
impl TaskOnce for SimpleWorkerErrorHandler<Worker> {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn run_once(self) {
Worker::dispatch_simple_error(self.addr, CanGc::note());
}