summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ops/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ops/lib.rs b/ops/lib.rs
index 437fa3b7e..f75972c51 100644
--- a/ops/lib.rs
+++ b/ops/lib.rs
@@ -476,7 +476,8 @@ fn codegen_v8_sync(
let result = Self::call::<#type_params>(#args_head #args_tail);
- let op_state = &*ctx.state.borrow();
+ // use RefCell::borrow instead of state.borrow to avoid clash with std::borrow::Borrow
+ let op_state = ::std::cell::RefCell::borrow(&*ctx.state);
op_state.tracker.track_sync(ctx.id);
#ret