Skip to content

Commit 3e6729a

Browse files
committed
make clippy happy
1 parent 29072f2 commit 3e6729a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bolos/src/flash_slot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub const SLOT_SIZE: usize = PAGE_SIZE - COUNTER_SIZE - CRC_SIZE;
2424

2525
pub const ZEROED_STORAGE: [u8; PAGE_SIZE] = Slot::zeroed().as_storage();
2626

27-
struct Slot<'nvm> {
27+
struct Slot<'nvm> {
2828
pub counter: u64,
2929
payload: &'nvm [u8; SLOT_SIZE],
3030
crc: u32,

zemu/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
extern crate cfg_if;
2727

2828
/// cbindgen:ignore
29-
mod bindings {
29+
mod bindings {
3030
extern "C" {
3131
cfg_if! {
3232
if #[cfg(zemu_sdk)] {

zemu/src/ui_toolkit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ fn strlen(s: &[u8]) -> Result<usize, StrNotNullTerminated> {
441441
}
442442

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

0 commit comments

Comments
 (0)