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