We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b6d43 commit 8de0a1bCopy full SHA for 8de0a1b
clippy_lints/src/transmute/transmute_int_to_non_zero.rs
@@ -27,7 +27,7 @@ pub(super) fn check<'tcx>(
27
};
28
29
// FIXME: This can be simplified once `NonZero<T>` is stable.
30
- let coercable_types = [
+ let coercible_types = [
31
("NonZeroU8", tcx.types.u8),
32
("NonZeroU16", tcx.types.u16),
33
("NonZeroU32", tcx.types.u32),
@@ -44,7 +44,7 @@ pub(super) fn check<'tcx>(
44
45
let int_type = substs.type_at(0);
46
47
- let Some(nonzero_alias) = coercable_types.iter().find_map(|(nonzero_alias, t)| {
+ let Some(nonzero_alias) = coercible_types.iter().find_map(|(nonzero_alias, t)| {
48
if *t == int_type && *t == from_ty {
49
Some(nonzero_alias)
50
} else {
0 commit comments