Convert usages of Instance::{func,dyn_func} to exports.get

This commit is contained in:
Mark McCaskey
2020-03-26 18:13:45 -07:00
parent 2fb8f8197b
commit 3eff8c1973
11 changed files with 24 additions and 17 deletions

View File

@ -64,7 +64,7 @@ fn main() -> Result<(), error::Error> {
},
})?;
let foo: Func<(), i32> = instance.func("dbz")?;
let foo: Func<(), i32> = instance.exports.get("dbz")?;
let result = foo.call();