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 --- ext/web/message_port.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/web/message_port.rs b/ext/web/message_port.rs index d8d8e5907..8734f9b65 100644 --- a/ext/web/message_port.rs +++ b/ext/web/message_port.rs @@ -48,6 +48,7 @@ impl MessagePort { &self, state: Rc>, ) -> Result, AnyError> { + #![allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove! let mut rx = self .rx .try_borrow_mut() -- cgit v1.2.3