Skip to content

Commit

Permalink
fix varname typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Apr 10, 2024
1 parent e5b6d43 commit 8de0a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/transmute/transmute_int_to_non_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(super) fn check<'tcx>(
};

// FIXME: This can be simplified once `NonZero<T>` is stable.
let coercable_types = [
let coercible_types = [
("NonZeroU8", tcx.types.u8),
("NonZeroU16", tcx.types.u16),
("NonZeroU32", tcx.types.u32),
Expand All @@ -44,7 +44,7 @@ pub(super) fn check<'tcx>(

let int_type = substs.type_at(0);

let Some(nonzero_alias) = coercable_types.iter().find_map(|(nonzero_alias, t)| {
let Some(nonzero_alias) = coercible_types.iter().find_map(|(nonzero_alias, t)| {
if *t == int_type && *t == from_ty {
Some(nonzero_alias)
} else {
Expand Down

0 comments on commit 8de0a1b

Please sign in to comment.