mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-14 01:21:19 +00:00
Fix some tests
This commit is contained in:
@ -187,6 +187,13 @@ impl From<RuntimeError> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ResolveError> for Error {
|
||||
fn from(resolve_err: ResolveError) -> Self {
|
||||
Error::ResolveError(resolve_err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl From<CallError> for Error {
|
||||
fn from(call_err: CallError) -> Self {
|
||||
Error::CallError(call_err)
|
||||
|
@ -438,7 +438,7 @@ impl<'a> DynFunc<'a> {
|
||||
/// # use wasmer_runtime_core::error::CallResult;
|
||||
/// # fn call_foo(instance: &mut Instance) -> CallResult<()> {
|
||||
/// instance
|
||||
/// .func("foo")?
|
||||
/// .dyn_func("foo")?
|
||||
/// .call(&[])?;
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
|
@ -74,7 +74,7 @@ impl Module {
|
||||
/// let import_object = imports! {
|
||||
/// // ...
|
||||
/// };
|
||||
/// let instance = module.instantiate(import_object)?;
|
||||
/// let instance = module.instantiate(&import_object)?;
|
||||
/// // ...
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
|
Reference in New Issue
Block a user