@@ -355,21 +355,21 @@ impl<E: EncodingType> Helper<'_, E> {
355
355
match self {
356
356
Self :: NoneInvalid => None ,
357
357
Self :: Primitive ( prim) => prim. size ( ) ,
358
- Self :: BitField ( size_bits, off_typ ) => Some (
358
+ Self :: BitField ( size_bits, off_ty ) => Some (
359
359
( usize:: from ( * size_bits) . next_power_of_two ( ) . max ( 8 ) / 8 ) . max (
360
- off_typ
361
- . and_then ( |( _, typ ) | typ . helper ( ) . size ( level. bitfield ( ) ) )
360
+ off_ty
361
+ . and_then ( |( _, ty ) | ty . helper ( ) . size ( level. bitfield ( ) ) )
362
362
. unwrap_or_default ( ) ,
363
363
) ,
364
364
) ,
365
- Self :: Indirection ( kind, typ ) => match kind {
365
+ Self :: Indirection ( kind, ty ) => match kind {
366
366
IndirectionKind :: Pointer => Some ( mem:: size_of :: < * const ( ) > ( ) ) ,
367
- IndirectionKind :: Atomic => typ . helper ( ) . size ( level. indirection ( * kind) ) ,
367
+ IndirectionKind :: Atomic => ty . helper ( ) . size ( level. indirection ( * kind) ) ,
368
368
} ,
369
- Self :: Array ( len, typ ) => typ
369
+ Self :: Array ( len, ty ) => ty
370
370
. helper ( )
371
371
. size ( level. array ( ) )
372
- . map ( |typ_size | * len as usize * typ_size ) ,
372
+ . map ( |ty_size | * len as usize * ty_size ) ,
373
373
Self :: Container ( kind, _, fields) => {
374
374
level
375
375
. container_include_fields ( )
0 commit comments