Skip to content

Commit 83809b4

Browse files
smoeliuscamsteffen
andauthored
Update clippy_utils/src/higher.rs
Co-authored-by: Cameron Steffen <[email protected]>
1 parent 5663df0 commit 83809b4

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
@@ -627,7 +627,7 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
627627
if let ExprKind::Struct(_, [position_field, _], _) = fmt.kind;
628628
let _ = assert_eq!(position_field.ident.name, sym::position);
629629
if let ExprKind::Lit(lit) = &position_field.expr.kind;
630-
if let LitKind::Int(u128, _) = lit.node;
630+
if let LitKind::Int(position, _) = lit.node;
631631
then {
632632
let i = usize::try_from(u128).unwrap();
633633
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }

0 commit comments

Comments
 (0)