Change FuncResolver::resolve signature

This commit is contained in:
Lachlan Sneff 2018-12-26 17:28:07 -05:00
parent 1bb5e420f3
commit 4bd2c3d053

View File

@ -1,4 +1,5 @@
use crate::runtime::{module::Module, types::FuncIndex, vm};
use std::ptr::NonNull;
use std::sync::Arc;
pub trait Compiler {
@ -6,5 +7,5 @@ pub trait Compiler {
}
pub trait FuncResolver {
fn resolve(&self, index: FuncIndex) -> Option<*const vm::Func>;
fn resolve(&self, index: FuncIndex) -> Option<NonNull<vm::Func>>;
}