Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Jun 4, 2024
1 parent 29072f2 commit 3e6729a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bolos/src/flash_slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion zemu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
extern crate cfg_if;

/// cbindgen:ignore
mod bindings {
mod bindings {
extern "C" {
cfg_if! {
if #[cfg(zemu_sdk)] {
Expand Down
2 changes: 1 addition & 1 deletion zemu/src/ui_toolkit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn strlen(s: &[u8]) -> Result<usize, StrNotNullTerminated> {
}

/// This function returns the index of the first null byte if found
fn c_strlen(s: *const u8, max: usize) -> Result<usize, StrNotNullTerminated> {
fn c_strlen(s: *const u8, max: usize) -> Result<usize, StrNotNullTerminated> {
let mut count = 0;
loop {
if count >= max {
Expand Down

0 comments on commit 3e6729a

Please sign in to comment.