diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-09-11 17:12:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 17:12:33 -0600 |
commit | bfd230fd78ef7867eec75e6b21715f51e72e7a23 (patch) | |
tree | 82e608291c571f2ea6a2448ba935f35d7ce0c0f0 /runtime/web_worker.rs | |
parent | bdeb4bddbf5cabd04abe906388f5ebfe64a84c53 (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 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 17bbb41ea..6fcc7aa9c 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -236,10 +236,10 @@ pub struct WebWorkerHandle { impl WebWorkerHandle { /// Get the WorkerEvent with lock /// Return error if more than one listener tries to get event + #[allow(clippy::await_holding_refcell_ref)] // TODO(ry) remove! 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) } |