diff --git a/bolos/src/flash_slot.rs b/bolos/src/flash_slot.rs index 2dfd855..a1e6105 100644 --- a/bolos/src/flash_slot.rs +++ b/bolos/src/flash_slot.rs @@ -24,7 +24,7 @@ pub const SLOT_SIZE: usize = PAGE_SIZE - COUNTER_SIZE - CRC_SIZE; pub const ZEROED_STORAGE: [u8; PAGE_SIZE] = Slot::zeroed().as_storage(); - struct Slot<'nvm> { +struct Slot<'nvm> { pub counter: u64, payload: &'nvm [u8; SLOT_SIZE], crc: u32, diff --git a/zemu/src/lib.rs b/zemu/src/lib.rs index 740c3a3..e365a92 100644 --- a/zemu/src/lib.rs +++ b/zemu/src/lib.rs @@ -26,7 +26,7 @@ extern crate cfg_if; /// cbindgen:ignore - mod bindings { +mod bindings { extern "C" { cfg_if! { if #[cfg(zemu_sdk)] { diff --git a/zemu/src/ui_toolkit.rs b/zemu/src/ui_toolkit.rs index 06ee200..831b8e7 100644 --- a/zemu/src/ui_toolkit.rs +++ b/zemu/src/ui_toolkit.rs @@ -441,7 +441,7 @@ fn strlen(s: &[u8]) -> Result { } /// This function returns the index of the first null byte if found - fn c_strlen(s: *const u8, max: usize) -> Result { +fn c_strlen(s: *const u8, max: usize) -> Result { let mut count = 0; loop { if count >= max {