diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ops/process.rs | 2 | ||||
-rw-r--r-- | runtime/web_worker.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index acfd0dc5c..cef4f77f8 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -336,11 +336,11 @@ fn op_spawn_child( // TODO(bartlomieju): op2 doesn't support clippy allows #[op] +#[allow(clippy::await_holding_refcell_ref)] async fn op_spawn_wait( state: Rc<RefCell<OpState>>, rid: ResourceId, ) -> Result<ChildStatus, AnyError> { - #![allow(clippy::await_holding_refcell_ref)] let resource = state .borrow_mut() .resource_table 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) } |