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 187f77c commit c2533efCopy full SHA for c2533ef
clippy_utils/src/higher.rs
@@ -630,8 +630,6 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
630
if let LitKind::Int(u128, _) = lit.node;
631
then {
632
let i = usize::try_from(u128).unwrap();
633
- assert!(i < value_args.len());
634
- assert!(i < args.len());
635
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }
636
} else {
637
panic!("malformed `core::fmt::rt::v1::Argument`");
0 commit comments