Skip to content

Commit ca18af9

Browse files
smoeliuscamsteffen
andcommitted
Update clippy_utils/src/higher.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent c623639 commit ca18af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/higher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
630630
if let ExprKind::Struct(_, [position_field, _], _) = fmt.kind;
631631
let _ = assert_eq!(position_field.ident.name, sym::position);
632632
if let ExprKind::Lit(lit) = &position_field.expr.kind;
633-
if let LitKind::Int(u128, _) = lit.node;
633+
if let LitKind::Int(position, _) = lit.node;
634634
then {
635635
let i = usize::try_from(u128).unwrap();
636636
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }

0 commit comments

Comments
 (0)