diff options
author | Nugine <nugine@foxmail.com> | 2022-07-01 06:43:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 00:43:25 +0200 |
commit | a27acbc2ec63dd684cf57990b30d757cd0477d9b (patch) | |
tree | 1fa71c31cfebba14a9a7d74eca18dada3b57686b /ops/lib.rs | |
parent | 3d8ba30ea0a4dfedcddcf11ecf2bf476cd1af4c3 (diff) |
fix(core): remove unsafe in OpsTracker (#15025)
Diffstat (limited to 'ops/lib.rs')
-rw-r--r-- | ops/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |