diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-11-03 09:27:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 09:27:36 -0400 |
commit | 7c2abb9d579d13fa61339c24f8c39bc3c27c25db (patch) | |
tree | c3ce3cefff867dd3f073eda18ebed53f728e4675 /ext/web/message_port.rs | |
parent | 95b2955712b0daae3c8e8f7bb0eccf341b5c8fa3 (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 'ext/web/message_port.rs')
-rw-r--r-- | ext/web/message_port.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<RefCell<OpState>>, ) -> Result<Option<JsMessageData>, AnyError> { + #![allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove! let mut rx = self .rx .try_borrow_mut() |