@@ -22,18 +22,15 @@ use crate::{
2222 } ,
2323 system:: memory:: online:: GuestMemory ,
2424} ;
25- static_assertions:: assert_impl_all!(
26- AotInstance <' static , p3_baby_bear:: BabyBear , MeteredCtx >: Send ,
27- Sync
28- ) ;
25+ static_assertions:: assert_impl_all!( AotInstance <p3_baby_bear:: BabyBear , MeteredCtx >: Send , Sync ) ;
2926
30- impl < ' a , F > AotInstance < ' a , F , MeteredCtx >
27+ impl < F > AotInstance < F , MeteredCtx >
3128where
3229 F : PrimeField32 ,
3330{
3431 /// Creates a new instance for metered execution.
3532 pub fn new_metered < E > (
36- inventory : & ' a ExecutorInventory < E > ,
33+ inventory : & ExecutorInventory < E > ,
3734 exe : & VmExe < F > ,
3835 executor_idx_to_air_idx : & [ usize ] ,
3936 ) -> Result < Self , StaticProgramError >
@@ -68,15 +65,15 @@ where
6865 start. elapsed( ) . as_millis( )
6966 ) ;
7067 Ok ( Self {
71- system_config : inventory. config ( ) ,
68+ system_config : inventory. config ( ) . clone ( ) ,
7269 pre_compute_buf,
7370 pre_compute_insns,
7471 pc_start : exe. pc_start ,
7572 init_memory,
7673 lib,
7774 } )
7875 }
79- fn create_metered_asm < E > (
76+ pub fn create_metered_asm < E > (
8077 exe : & VmExe < F > ,
8178 inventory : & ExecutorInventory < E > ,
8279 executor_idx_to_air_idx : & [ usize ] ,
0 commit comments