@@ -325,8 +325,7 @@ impl ReplayInstance {
325325 let instance = self . component_instances . get_mut ( event. instance ) ?;
326326
327327 // Replay lowering steps and obtain raw value arguments to raw function call
328- let func =
329- component:: Func :: from_lifted_func ( * instance, Into :: into ( event. func_index ) ) ;
328+ let func = component:: Func :: from_lifted_func ( * instance, event. func_index ) ;
330329 let store = self . store . as_context_mut ( ) ;
331330 // Call the function
332331 //
@@ -371,8 +370,7 @@ impl ReplayInstance {
371370 }
372371 RREvent :: ComponentPostReturn ( event) => {
373372 let instance = self . component_instances . get_mut ( event. instance ) ?;
374- let func =
375- component:: Func :: from_lifted_func ( * instance, Into :: into ( event. func_index ) ) ;
373+ let func = component:: Func :: from_lifted_func ( * instance, event. func_index ) ;
376374 let mut store = self . store . as_context_mut ( ) ;
377375 func. post_return ( & mut store) ?;
378376 }
@@ -386,8 +384,8 @@ impl ReplayInstance {
386384 self . insert_module_instance ( instance) ;
387385 }
388386 RREvent :: CoreWasmFuncEntry ( event) => {
389- let instance = self . module_instances . get_mut ( event. instance . into ( ) ) ?;
390- let entity = Into :: < EntityIndex > :: into ( event. func_index ) ;
387+ let instance = self . module_instances . get_mut ( event. instance ) ?;
388+ let entity = EntityIndex :: from ( event. func_index ) ;
391389 let mut store = self . store . as_context_mut ( ) ;
392390 let func = instance
393391 . _get_export ( store. 0 , entity)
@@ -409,7 +407,7 @@ impl ReplayInstance {
409407 }
410408
411409 _ => {
412- log:: error!( "Unexpected top-level RR event: {:?}" , rr_event ) ;
410+ log:: error!( "Unexpected top-level RR event: {rr_event :?}" ) ;
413411 Err ( ReplayError :: IncorrectEventVariant ) ?
414412 }
415413 }
@@ -434,8 +432,7 @@ impl ReplayInstance {
434432 let instance = self . component_instances . get_mut ( event. instance ) ?;
435433
436434 // Replay lowering steps and obtain raw value arguments to raw function call
437- let func =
438- component:: Func :: from_lifted_func ( * instance, Into :: into ( event. func_index ) ) ;
435+ let func = component:: Func :: from_lifted_func ( * instance, event. func_index ) ;
439436 let mut store = self . store . as_context_mut ( ) ;
440437 // Call the function
441438 //
@@ -486,8 +483,7 @@ impl ReplayInstance {
486483 }
487484 RREvent :: ComponentPostReturn ( event) => {
488485 let instance = self . component_instances . get_mut ( event. instance ) ?;
489- let func =
490- component:: Func :: from_lifted_func ( * instance, Into :: into ( event. func_index ) ) ;
486+ let func = component:: Func :: from_lifted_func ( * instance, event. func_index ) ;
491487 let mut store = self . store . as_context_mut ( ) ;
492488 func. post_return_async ( & mut store) . await ?;
493489 }
@@ -503,7 +499,7 @@ impl ReplayInstance {
503499 }
504500 RREvent :: CoreWasmFuncEntry ( event) => {
505501 let instance = self . module_instances . get_mut ( event. instance ) ?;
506- let entity = Into :: < EntityIndex > :: into ( event. func_index ) ;
502+ let entity = EntityIndex :: from ( event. func_index ) ;
507503 let mut store = self . store . as_context_mut ( ) ;
508504 let func = instance
509505 . _get_export ( store. 0 , entity)
@@ -529,7 +525,7 @@ impl ReplayInstance {
529525 }
530526
531527 _ => {
532- log:: error!( "Unexpected top-level RR event: {:?}" , rr_event ) ;
528+ log:: error!( "Unexpected top-level RR event: {rr_event :?}" ) ;
533529 Err ( ReplayError :: IncorrectEventVariant ) ?
534530 }
535531 }
0 commit comments