This commit is contained in:
Heyang Zhou
2019-05-04 09:56:52 -07:00
parent c4e4efc694
commit a590d7cd07
5 changed files with 65 additions and 13 deletions

View File

@ -130,7 +130,7 @@ impl Instance {
}
pub fn load<T: Loader>(&self, loader: T) -> ::std::result::Result<T::Instance, T::Error> {
loader.load(&*self.module.runnable_module, &self.module.info, unsafe { &(*self.inner.vmctx).internal })
loader.load(&*self.module.runnable_module, &self.module.info, unsafe { &*self.inner.vmctx })
}
/// Through generic magic and the awe-inspiring power of traits, we bring you...