Skip to content

Commit be3122c

Browse files
techmccatusbalbin
authored andcommitted
spi: fix unneeded cast lint
1 parent cf358f5 commit be3122c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl<SPI: Instance, PINS: Pins<SPI>> embedded_hal::spi::SpiBus<u8> for Spi<SPI,
440440
core::slice::from_raw_parts_mut(ptr as *mut [u8; 2], half_len)
441441
};
442442

443-
for b in words_alias.iter_mut().take(prefill as usize) {
443+
for b in words_alias.iter_mut().take(prefill) {
444444
nb::block!(self.nb_write(u16::from_le_bytes(*b)))?;
445445
}
446446

0 commit comments

Comments
 (0)