mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
fix varname typo
This commit is contained in:
parent
e5b6d433fb
commit
8de0a1bdbd
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ pub(super) fn check<'tcx>(
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME: This can be simplified once `NonZero<T>` is stable.
|
// FIXME: This can be simplified once `NonZero<T>` is stable.
|
||||||
let coercable_types = [
|
let coercible_types = [
|
||||||
("NonZeroU8", tcx.types.u8),
|
("NonZeroU8", tcx.types.u8),
|
||||||
("NonZeroU16", tcx.types.u16),
|
("NonZeroU16", tcx.types.u16),
|
||||||
("NonZeroU32", tcx.types.u32),
|
("NonZeroU32", tcx.types.u32),
|
||||||
|
@ -44,7 +44,7 @@ pub(super) fn check<'tcx>(
|
||||||
|
|
||||||
let int_type = substs.type_at(0);
|
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 {
|
if *t == int_type && *t == from_ty {
|
||||||
Some(nonzero_alias)
|
Some(nonzero_alias)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue