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 5663df0 commit 83809b4Copy full SHA for 83809b4
clippy_utils/src/higher.rs
@@ -627,7 +627,7 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
627
if let ExprKind::Struct(_, [position_field, _], _) = fmt.kind;
628
let _ = assert_eq!(position_field.ident.name, sym::position);
629
if let ExprKind::Lit(lit) = &position_field.expr.kind;
630
- if let LitKind::Int(u128, _) = lit.node;
+ if let LitKind::Int(position, _) = lit.node;
631
then {
632
let i = usize::try_from(u128).unwrap();
633
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }
0 commit comments