mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-20 20:26:32 +00:00
Add instance.ctx() to make inner private again
This commit is contained in:
@ -25,8 +25,8 @@ pub struct InstanceInner {
|
||||
|
||||
/// A WebAssembly instance
|
||||
pub struct Instance {
|
||||
pub module: Rc<ModuleInner>,
|
||||
pub inner: Box<InstanceInner>,
|
||||
module: Rc<ModuleInner>,
|
||||
inner: Box<InstanceInner>,
|
||||
#[allow(dead_code)]
|
||||
imports: Box<ImportObject>,
|
||||
}
|
||||
@ -100,6 +100,10 @@ impl Instance {
|
||||
pub fn module(&self) -> Module {
|
||||
Module::new(Rc::clone(&self.module))
|
||||
}
|
||||
|
||||
pub fn ctx(&mut self) -> &mut vm::Ctx {
|
||||
&mut self.inner.vmctx
|
||||
}
|
||||
}
|
||||
|
||||
impl Instance {
|
||||
|
Reference in New Issue
Block a user