diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-15 01:18:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 01:18:36 +0100 |
commit | a0f015b1a39463ec0e98ec204ca727a5f023b200 (patch) | |
tree | c5c464756c2dd1be59787fb2a95433e5f290256e /cli/ops/plugins.rs | |
parent | 87c329c45ac0e3382c115793094317df15cbe5bf (diff) |
refactor: replace Arc<Box<..>> with Rc<..> (#3996)
Diffstat (limited to 'cli/ops/plugins.rs')
-rw-r--r-- | cli/ops/plugins.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<deno_core::OpRegistry>) { +pub fn init(i: &mut Isolate, s: &State, r: Rc<deno_core::OpRegistry>) { let r_ = r; i.register_op( "open_plugin", @@ -51,7 +51,7 @@ struct OpenPluginArgs { } pub fn op_open_plugin( - registry: &Arc<deno_core::OpRegistry>, + registry: &Rc<deno_core::OpRegistry>, state: &State, args: Value, _zero_copy: Option<ZeroCopyBuf>, |