mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +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 {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user