From da3067ca032f6b9369a5004f0c30531ac6be7e2c Mon Sep 17 00:00:00 2001 From: Illia Polosukhin Date: Mon, 21 Jan 2019 23:02:17 -0800 Subject: [PATCH] Adding lifetime to Externals to allow to expose infromation by reference that exists within externals existance --- src/host.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host.rs b/src/host.rs index 65393e8..ca869a4 100644 --- a/src/host.rs +++ b/src/host.rs @@ -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, Trap>;