mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-12 08:31:21 +00:00
Convert usages of Instance::{func,dyn_func}
to exports.get
This commit is contained in:
@ -934,6 +934,10 @@ pub struct Exports {
|
||||
module: Arc<ModuleInner>,
|
||||
}
|
||||
|
||||
// this is safe because the lifetime of `Exports` is tied to `Instance` and
|
||||
// `*const InstanceInner` comes from a `Pin<Box<InstanceInner>>`
|
||||
unsafe impl Send for Exports {}
|
||||
|
||||
impl Exports {
|
||||
/// Get an export.
|
||||
///
|
||||
|
Reference in New Issue
Block a user