Ensure FlashRegion can only be created within this crate

This commit is contained in:
Rasmus Melchior Jacobsen 2023-05-23 22:49:27 +02:00
parent 627d7f66ef
commit 879c621394
2 changed files with 2 additions and 0 deletions

View file

@ -206,6 +206,7 @@ fn main() {
erase_size: #erase_size,
write_size: #write_size,
erase_value: #erase_value,
_ensure_internal: (),
};
});

View file

@ -19,6 +19,7 @@ pub struct FlashRegion {
pub erase_size: u32,
pub write_size: u32,
pub erase_value: u8,
pub(crate) _ensure_internal: (),
}
#[derive(Debug, PartialEq)]