From 7c2abb9d579d13fa61339c24f8c39bc3c27c25db Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 3 Nov 2021 09:27:36 -0400 Subject: fix: Deno.emit crashes with BorrowMutError (#12627) Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453 --- runtime/web_worker.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') 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, AnyError> { + #![allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove! let mut receiver = self.receiver.borrow_mut(); Ok(receiver.next().await) } -- cgit v1.2.3