Adding lifetime to Externals to allow to expose infromation by reference that exists within externals existance

This commit is contained in:
Illia Polosukhin 2019-01-21 23:02:17 -08:00
parent 9170303aad
commit da3067ca03
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ impl HostError {
/// ```
pub trait Externals {
/// Perform invoke of a host function by specified `index`.
fn invoke_index(
&mut self,
fn invoke_index<'a>(
&'a mut self,
index: usize,
args: RuntimeArgs,
) -> Result<Option<RuntimeValue>, Trap>;