Skip to content

Commit 48d3de3

Browse files
committed
Use "ty" instead of "typ"
Fixes typos check.
1 parent 09cd218 commit 48d3de3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/objc2-encode/src/helper.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,21 +355,21 @@ impl<E: EncodingType> Helper<'_, E> {
355355
match self {
356356
Self::NoneInvalid => None,
357357
Self::Primitive(prim) => prim.size(),
358-
Self::BitField(size_bits, off_typ) => Some(
358+
Self::BitField(size_bits, off_ty) => Some(
359359
(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()))
362362
.unwrap_or_default(),
363363
),
364364
),
365-
Self::Indirection(kind, typ) => match kind {
365+
Self::Indirection(kind, ty) => match kind {
366366
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)),
368368
},
369-
Self::Array(len, typ) => typ
369+
Self::Array(len, ty) => ty
370370
.helper()
371371
.size(level.array())
372-
.map(|typ_size| *len as usize * typ_size),
372+
.map(|ty_size| *len as usize * ty_size),
373373
Self::Container(kind, _, fields) => {
374374
level
375375
.container_include_fields()

0 commit comments

Comments
 (0)