nrf/qspi: remove cfg_if hack
This commit is contained in:
parent
bef559307c
commit
9eb65b11cb
1 changed files with 30 additions and 29 deletions
|
@ -525,12 +525,14 @@ impl<'d, T: Instance, const FLASH_SIZE: usize> NorFlash for Qspi<'d, T, FLASH_SI
|
|||
}
|
||||
}
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "nightly")]
|
||||
{
|
||||
use embedded_storage_async::nor_flash::{AsyncNorFlash, AsyncReadNorFlash};
|
||||
#[cfg(feature = "nightly")]
|
||||
mod _eh1 {
|
||||
use core::future::Future;
|
||||
|
||||
use embedded_storage_async::nor_flash::{AsyncNorFlash, AsyncReadNorFlash};
|
||||
|
||||
use super::*;
|
||||
|
||||
impl<'d, T: Instance, const FLASH_SIZE: usize> AsyncNorFlash for Qspi<'d, T, FLASH_SIZE> {
|
||||
const WRITE_SIZE: usize = <Self as NorFlash>::WRITE_SIZE;
|
||||
const ERASE_SIZE: usize = <Self as NorFlash>::ERASE_SIZE;
|
||||
|
@ -562,7 +564,6 @@ cfg_if::cfg_if! {
|
|||
FLASH_SIZE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) mod sealed {
|
||||
|
|
Loading…
Reference in a new issue