From 27f4aeb92469660fdd78a89a7b2902c08a23ca4a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 18 Aug 2020 18:30:13 +0200 Subject: Make Rc/Arc wrapper around State/GlobalState visible (#7104) --- cli/ops/plugin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/ops/plugin.rs') diff --git a/cli/ops/plugin.rs b/cli/ops/plugin.rs index 16debac50..3fb149404 100644 --- a/cli/ops/plugin.rs +++ b/cli/ops/plugin.rs @@ -20,7 +20,7 @@ use std::rc::Rc; use std::task::Context; use std::task::Poll; -pub fn init(i: &mut CoreIsolate, s: &State) { +pub fn init(i: &mut CoreIsolate, s: &Rc) { i.register_op( "op_open_plugin", s.core_op(json_op(s.stateful_op2(op_open_plugin))), @@ -35,7 +35,7 @@ struct OpenPluginArgs { pub fn op_open_plugin( isolate_state: &mut CoreIsolateState, - state: &State, + state: &Rc, args: Value, _zero_copy: &mut [ZeroCopyBuf], ) -> Result { -- cgit v1.2.3