Add missing nightly guards

This commit is contained in:
Rasmus Melchior Jacobsen 2023-05-24 12:42:35 +02:00
parent 7477785bbb
commit cdb1447569

View file

@ -139,6 +139,7 @@ mod alt_regions {
}
}
#[cfg(all(feature = "nightly"))]
impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> {
const READ_SIZE: usize = READ_SIZE;
@ -151,6 +152,7 @@ mod alt_regions {
}
}
#[cfg(all(feature = "nightly"))]
impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> {
const WRITE_SIZE: usize = $region.write_size as usize;
const ERASE_SIZE: usize = $region.erase_size as usize;