mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
Implement Exportable for NativeFunc
This commit is contained in:
4
lib/api/src/externals/mod.rs
vendored
4
lib/api/src/externals/mod.rs
vendored
@@ -51,9 +51,9 @@ impl<'a> Exportable<'a> for Extern {
|
||||
}
|
||||
}
|
||||
|
||||
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Self, ExportError> {
|
||||
fn get_self_from_extern(_extern: &'a Extern) -> Result<Self, ExportError> {
|
||||
// Since this is already an extern, we can just return it.
|
||||
Ok(_extern)
|
||||
Ok(_extern.clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user