mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
Fixed linting
This commit is contained in:
@@ -112,7 +112,7 @@ impl Instance {
|
|||||||
/// Is expected that the function [`Instance::init_envs`] is run manually
|
/// Is expected that the function [`Instance::init_envs`] is run manually
|
||||||
/// by the user in case the instance has any Wasmer imports, so the function
|
/// by the user in case the instance has any Wasmer imports, so the function
|
||||||
/// environments are properly initiated.
|
/// environments are properly initiated.
|
||||||
///
|
///
|
||||||
/// *This method is only available when targeting JS environments*
|
/// *This method is only available when targeting JS environments*
|
||||||
pub fn from_module_and_instance(
|
pub fn from_module_and_instance(
|
||||||
module: &Module,
|
module: &Module,
|
||||||
@@ -152,7 +152,7 @@ impl Instance {
|
|||||||
/// This method should be called if the Wasmer `Instance` is initialized
|
/// This method should be called if the Wasmer `Instance` is initialized
|
||||||
/// from Javascript with an already existing `WebAssembly.Instance` but with
|
/// from Javascript with an already existing `WebAssembly.Instance` but with
|
||||||
/// a imports from the Rust side.
|
/// a imports from the Rust side.
|
||||||
///
|
///
|
||||||
/// *This method is only available when targeting JS environments*
|
/// *This method is only available when targeting JS environments*
|
||||||
pub fn init_envs(&self, imports: &[Export]) -> Result<(), InstantiationError> {
|
pub fn init_envs(&self, imports: &[Export]) -> Result<(), InstantiationError> {
|
||||||
for import in imports {
|
for import in imports {
|
||||||
|
|||||||
Reference in New Issue
Block a user