mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Ensure FlashRegion can only be created within this crate
This commit is contained in:
parent
627d7f66ef
commit
879c621394
@ -206,6 +206,7 @@ fn main() {
|
||||
erase_size: #erase_size,
|
||||
write_size: #write_size,
|
||||
erase_value: #erase_value,
|
||||
_ensure_internal: (),
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user