Skip to content

Commit 8de0a1b

Browse files
committed
fix varname typo
1 parent e5b6d43 commit 8de0a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/transmute/transmute_int_to_non_zero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub(super) fn check<'tcx>(
2727
};
2828

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

4545
let int_type = substs.type_at(0);
4646

47-
let Some(nonzero_alias) = coercable_types.iter().find_map(|(nonzero_alias, t)| {
47+
let Some(nonzero_alias) = coercible_types.iter().find_map(|(nonzero_alias, t)| {
4848
if *t == int_type && *t == from_ty {
4949
Some(nonzero_alias)
5050
} else {

0 commit comments

Comments
 (0)