summaryrefslogtreecommitdiff
path: root/ext/web/message_port.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-09-11 17:12:33 -0600
committerGitHub <noreply@github.com>2023-09-11 17:12:33 -0600
commitbfd230fd78ef7867eec75e6b21715f51e72e7a23 (patch)
tree82e608291c571f2ea6a2448ba935f35d7ce0c0f0 /ext/web/message_port.rs
parentbdeb4bddbf5cabd04abe906388f5ebfe64a84c53 (diff)
chore: update inner #\![allow] to #[allow] (#20463)
Functions should generally be annotated with `#[allow]` blocks rather than using inner `#![allow]` annotations.
Diffstat (limited to 'ext/web/message_port.rs')
-rw-r--r--ext/web/message_port.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/message_port.rs b/ext/web/message_port.rs
index 47ebdabf7..73214ab8e 100644
--- a/ext/web/message_port.rs
+++ b/ext/web/message_port.rs
@@ -51,11 +51,11 @@ impl MessagePort {
Ok(())
}
+ #[allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove!
pub async fn recv(
&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()