bolts linux arm64 clippy fix build (#1496)

This commit is contained in:
David CARLIER 2023-09-02 00:35:05 +01:00 committed by GitHub
parent 256d010981
commit 7e5a1dba05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,11 +56,11 @@ pub fn dump_registers<W: Write>(
writer: &mut BufWriter<W>,
ucontext: &ucontext_t,
) -> Result<(), std::io::Error> {
for reg in 0..31 {
for reg in 0..31_usize {
write!(
writer,
"x{:02}: 0x{:016x} ",
reg, ucontext.uc_mcontext.regs[reg as usize]
reg, ucontext.uc_mcontext.regs[reg]
)?;
if reg % 4 == 3 {
writeln!(writer)?;