more linting

This commit is contained in:
Brandon Ros 2023-08-22 18:56:25 -04:00
parent 6b2c3f5b16
commit 3c487fbbb4
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ pub(crate) async fn upload_bluetooth_firmware<PWR: OutputPin, SPI: SpiBusCyw43>(
let mut aligned_data_buffer: [u8; 0x100] = [0; 0x100];
// structs
let mut fw_bytes_pointer = 0;
for (index, &(dest_addr, num_fw_bytes)) in firmware_offsets.iter().enumerate() {
for &(dest_addr, num_fw_bytes) in firmware_offsets.iter() {
let fw_bytes = &firmware[(fw_bytes_pointer)..(fw_bytes_pointer + num_fw_bytes)];
assert!(fw_bytes.len() == num_fw_bytes);
let mut dest_start_addr = dest_addr;