mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
refactor: replace Arc<Box<..>> with Rc<..> (#3996)
This commit is contained in:
parent
87c329c45a
commit
a0f015b1a3
6 changed files with 33 additions and 33 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue