mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-08 04:41:32 +00:00
Use Arc instead of Rc
This commit is contained in:
lib
clif-backend
src
llvm-backend
src
runtime-core
singlepass-backend
@ -18,7 +18,6 @@ use std::fmt;
|
||||
use std::fmt::Debug;
|
||||
use std::marker::PhantomData;
|
||||
use std::sync::{Arc, RwLock};
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
use wasmparser::{self, WasmDecoder};
|
||||
use wasmparser::{Operator, Type as WpType};
|
||||
|
||||
@ -250,7 +249,7 @@ impl<
|
||||
})?;
|
||||
Ok(ModuleInner {
|
||||
cache_gen,
|
||||
runnable_module: Rc::new(RefCell::new(Box::new(exec_context))),
|
||||
runnable_module: Arc::new(Box::new(exec_context)),
|
||||
info: Arc::try_unwrap(info).unwrap().into_inner().unwrap(),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user