Skip to content

Commit 5663df0

Browse files
smoeliuscamsteffen
andauthored
Update clippy_utils/src/higher.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent b3a6680 commit 5663df0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clippy_utils/src/higher.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,6 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
630630
if let LitKind::Int(u128, _) = lit.node;
631631
then {
632632
let i = usize::try_from(u128).unwrap();
633-
assert!(i < value_args.len());
634-
assert!(i < args.len());
635633
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }
636634
} else {
637635
panic!("malformed `core::fmt::rt::v1::Argument`");

0 commit comments

Comments
 (0)