@@ -882,7 +882,7 @@ impl<'a> BinaryReader<'a> {
882882 }
883883
884884 #[ inline]
885- fn expect_frame ( & mut self , stack : & impl FrameStack , k : & FrameKind , found : & str ) -> Result < ( ) > {
885+ fn expect_frame ( & mut self , stack : & impl FrameStack , k : FrameKind , found : & str ) -> Result < ( ) > {
886886 if stack. current_frame ( ) == Some ( k) {
887887 return Ok ( ( ) ) ;
888888 }
@@ -918,7 +918,7 @@ impl<'a> BinaryReader<'a> {
918918 0x03 => visitor. visit_loop ( self . read_block_type ( ) ?) ,
919919 0x04 => visitor. visit_if ( self . read_block_type ( ) ?) ,
920920 0x05 => {
921- self . expect_frame ( visitor, & FrameKind :: If , "else" ) ?;
921+ self . expect_frame ( visitor, FrameKind :: If , "else" ) ?;
922922 visitor. visit_else ( )
923923 }
924924 0x06 => {
@@ -937,9 +937,9 @@ impl<'a> BinaryReader<'a> {
937937 "legacy_exceptions feature required for catch instruction"
938938 ) ;
939939 }
940- match self . expect_frame ( visitor, & FrameKind :: LegacyCatch , "catch" ) {
940+ match self . expect_frame ( visitor, FrameKind :: LegacyCatch , "catch" ) {
941941 Ok ( ( ) ) => ( ) ,
942- Err ( _) => self . expect_frame ( visitor, & FrameKind :: LegacyTry , "catch" ) ?,
942+ Err ( _) => self . expect_frame ( visitor, FrameKind :: LegacyTry , "catch" ) ?,
943943 }
944944 visitor. visit_catch ( self . read_var_u32 ( ) ?)
945945 }
@@ -962,7 +962,7 @@ impl<'a> BinaryReader<'a> {
962962 0x14 => visitor. visit_call_ref ( self . read ( ) ?) ,
963963 0x15 => visitor. visit_return_call_ref ( self . read ( ) ?) ,
964964 0x18 => {
965- self . expect_frame ( visitor, & FrameKind :: LegacyTry , "delegate" ) ?;
965+ self . expect_frame ( visitor, FrameKind :: LegacyTry , "delegate" ) ?;
966966 visitor. visit_delegate ( self . read_var_u32 ( ) ?)
967967 }
968968 0x19 => {
@@ -972,9 +972,9 @@ impl<'a> BinaryReader<'a> {
972972 "legacy_exceptions feature required for catch_all instruction"
973973 ) ;
974974 }
975- match self . expect_frame ( visitor, & FrameKind :: LegacyCatch , "catch_all" ) {
975+ match self . expect_frame ( visitor, FrameKind :: LegacyCatch , "catch_all" ) {
976976 Ok ( ( ) ) => ( ) ,
977- Err ( _) => self . expect_frame ( visitor, & FrameKind :: LegacyTry , "catch_all" ) ?,
977+ Err ( _) => self . expect_frame ( visitor, FrameKind :: LegacyTry , "catch_all" ) ?,
978978 }
979979 visitor. visit_catch_all ( )
980980 }
0 commit comments