@@ -487,7 +487,7 @@ pub enum ComponentDefinedType<'a> {
487487 /// The type is a list of the given value type.
488488 List ( ComponentValType ) ,
489489 /// The type is a fixed size list of the given value type.
490- FixedSizeList ( ComponentValType , usize ) ,
490+ FixedSizeList ( ComponentValType , u32 ) ,
491491 /// The type is a tuple of the given value types.
492492 Tuple ( Box < [ ComponentValType ] > ) ,
493493 /// The type is flags with the given names.
@@ -529,9 +529,6 @@ impl<'a> ComponentDefinedType<'a> {
529529 . collect :: < Result < _ > > ( ) ?,
530530 ) ,
531531 0x70 => ComponentDefinedType :: List ( reader. read ( ) ?) ,
532- 0x67 => {
533- ComponentDefinedType :: FixedSizeList ( reader. read ( ) ?, reader. read_var_u32 ( ) ? as usize )
534- }
535532 0x6f => ComponentDefinedType :: Tuple (
536533 reader
537534 . read_iter ( MAX_WASM_TUPLE_TYPES , "tuple types" ) ?
@@ -555,8 +552,9 @@ impl<'a> ComponentDefinedType<'a> {
555552 } ,
556553 0x69 => ComponentDefinedType :: Own ( reader. read ( ) ?) ,
557554 0x68 => ComponentDefinedType :: Borrow ( reader. read ( ) ?) ,
558- 0x65 => ComponentDefinedType :: Future ( reader. read ( ) ?) ,
555+ 0x67 => ComponentDefinedType :: FixedSizeList ( reader. read ( ) ? , reader . read_var_u32 ( ) ?) ,
559556 0x66 => ComponentDefinedType :: Stream ( reader. read ( ) ?) ,
557+ 0x65 => ComponentDefinedType :: Future ( reader. read ( ) ?) ,
560558 0x64 => ComponentDefinedType :: ErrorContext ,
561559 x => return reader. invalid_leading_byte ( x, "component defined type" ) ,
562560 } )
0 commit comments