@@ -13,9 +13,8 @@ use std::mem;
1313use wasmparser:: BlockType ;
1414use wasmtime_environ:: {
1515 BuiltinFunctionIndex , DefinedFuncIndex , FuncIndex , FuncKey , GlobalIndex , IndexType , Memory ,
16- MemoryIndex , ModuleTranslation , ModuleTypesBuilder , PanicOnOom as _, PrimaryMap , PtrSize ,
17- Table , TableIndex , TypeConvert , TypeIndex , VMOffsets , WasmHeapType , WasmValType ,
18- collections:: TryClone as _,
16+ MemoryIndex , ModuleTranslation , ModuleTypesBuilder , PrimaryMap , PtrSize , Table , TableIndex ,
17+ TypeConvert , TypeIndex , VMOffsets , WasmHeapType , WasmValType , collections:: TryClone as _,
1918} ;
2019
2120#[ derive( Debug , Clone , Copy ) ]
@@ -195,7 +194,7 @@ impl<'a, 'translation, 'data, P: PtrSize> FuncEnv<'a, 'translation, 'data, P> {
195194 let sig_index = self . translation . module . types [ TypeIndex :: from_u32 ( idx) ]
196195 . unwrap_module_type_index ( ) ;
197196 let sig = self . types [ sig_index] . unwrap_func ( ) ;
198- BlockSig :: new ( control:: BlockType :: func ( sig. try_clone ( ) . panic_on_oom ( ) ) )
197+ BlockSig :: new ( control:: BlockType :: func ( sig. clone_panic_on_oom ( ) ) )
199198 }
200199 } )
201200 }
0 commit comments