mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
nrf: More nits cleaned up - useless cast and struct item
This commit is contained in:
parent
a8710e943d
commit
580ab48451
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user