Skip to content

Commit c623639

Browse files
smoeliuscamsteffen
andcommitted
Update clippy_utils/src/higher.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent c843b19 commit c623639

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
@@ -633,8 +633,6 @@ impl<'tcx> Iterator for FormatArgsIter<'tcx> {
633633
if let LitKind::Int(u128, _) = lit.node;
634634
then {
635635
let i = usize::try_from(u128).unwrap();
636-
assert!(i < value_args.len());
637-
assert!(i < args.len());
638636
FormatArgsArg { value: value_args[i], arg: &args[i], fmt: Some(fmt) }
639637
} else {
640638
panic!("malformed `core::fmt::rt::v1::Argument`");

0 commit comments

Comments
 (0)