nrf: More nits cleaned up - useless cast and struct item

This commit is contained in:
Priit Laes 2024-02-17 13:18:36 +02:00
parent a8710e943d
commit 580ab48451
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ impl<'d> NorFlash for Nvmc<'d> {
if offset as usize + bytes.len() > FLASH_SIZE { if offset as usize + bytes.len() > FLASH_SIZE {
return Err(Error::OutOfBounds); return Err(Error::OutOfBounds);
} }
if offset as usize % 4 != 0 || bytes.len() as usize % 4 != 0 { if offset as usize % 4 != 0 || bytes.len() % 4 != 0 {
return Err(Error::Unaligned); return Err(Error::Unaligned);
} }

View File

@ -619,7 +619,7 @@ impl<'d, T: Instance> UarteRx<'d, T> {
UarteRxWithIdle { UarteRxWithIdle {
rx: self, rx: self,
timer, timer,
ppi_ch1: ppi_ch1, ppi_ch1,
_ppi_ch2: ppi_ch2, _ppi_ch2: ppi_ch2,
} }
} }