summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-11-03 09:27:36 -0400
committerGitHub <noreply@github.com>2021-11-03 09:27:36 -0400
commit7c2abb9d579d13fa61339c24f8c39bc3c27c25db (patch)
treec3ce3cefff867dd3f073eda18ebed53f728e4675 /runtime/web_worker.rs
parent95b2955712b0daae3c8e8f7bb0eccf341b5c8fa3 (diff)
fix: Deno.emit crashes with BorrowMutError (#12627)
Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 8d3fcbb35..c70d20ffc 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -198,6 +198,7 @@ impl WebWorkerHandle {
pub async fn get_control_event(
&self,
) -> Result<Option<WorkerControlEvent>, AnyError> {
+ #![allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove!
let mut receiver = self.receiver.borrow_mut();
Ok(receiver.next().await)
}