diff --git a/clippy_utils/src/higher.rs b/clippy_utils/src/higher.rs index 076644cd5d6b..abb5845ab243 100644 --- a/clippy_utils/src/higher.rs +++ b/clippy_utils/src/higher.rs @@ -627,7 +627,7 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> { if let ExprKind::Struct(_, [position_field, _], _) = fmt.kind; let _ = assert_eq!(position_field.ident.name, sym::position); if let ExprKind::Lit(lit) = &position_field.expr.kind; - if let LitKind::Int(u128, _) = lit.node; + if let LitKind::Int(position, _) = lit.node; then { let i = usize::try_from(u128).unwrap(); FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }