feat(deprecated) Rename Ctx::new to Ctx::new_uninit + unsafe.

This commit is contained in:
Ivan Enderlin
2020-06-30 14:30:21 +02:00
parent f0c18eb090
commit dea04859e4
3 changed files with 8 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ pub(crate) struct PreInstance {
impl PreInstance {
pub(crate) fn new() -> Self {
Self {
vmctx: Rc::new(RefCell::new(vm::Ctx::new())),
vmctx: Rc::new(RefCell::new(unsafe { vm::Ctx::new_uninit() })),
}
}
@@ -98,6 +98,7 @@ impl LikeNamespace for Instance {
}
}
#[derive(Clone)]
pub struct Exports {
pub(crate) new_exports: new::wasmer::Exports,
}