From a27acbc2ec63dd684cf57990b30d757cd0477d9b Mon Sep 17 00:00:00 2001 From: Nugine Date: Fri, 1 Jul 2022 06:43:25 +0800 Subject: fix(core): remove unsafe in OpsTracker (#15025) --- ops/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/lib.rs b/ops/lib.rs index 44ea1c677..387707e1a 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -293,7 +293,7 @@ fn codegen_v8_sync( let result = Self::call::<#type_params>(#args_head #args_tail); - let op_state = &mut ctx.state.borrow(); + let op_state = &*ctx.state.borrow(); op_state.tracker.track_sync(ctx.id); #ret -- cgit v1.2.3