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 {
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);
}

View file

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