mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-30 09:01:33 +00:00
Convert usages of Instance::{func,dyn_func}
to exports.get
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user