From a0f015b1a39463ec0e98ec204ca727a5f023b200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 15 Feb 2020 01:18:36 +0100 Subject: refactor: replace Arc> with Rc<..> (#3996) --- cli/ops/plugins.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/ops/plugins.rs') diff --git a/cli/ops/plugins.rs b/cli/ops/plugins.rs index ecaa66b53..aa810e0ea 100644 --- a/cli/ops/plugins.rs +++ b/cli/ops/plugins.rs @@ -7,9 +7,9 @@ use dlopen::symbor::Library; use std::collections::HashMap; use std::ffi::OsStr; use std::path::Path; -use std::sync::Arc; +use std::rc::Rc; -pub fn init(i: &mut Isolate, s: &State, r: Arc) { +pub fn init(i: &mut Isolate, s: &State, r: Rc) { let r_ = r; i.register_op( "open_plugin", @@ -51,7 +51,7 @@ struct OpenPluginArgs { } pub fn op_open_plugin( - registry: &Arc, + registry: &Rc, state: &State, args: Value, _zero_copy: Option, -- cgit v1.2.3