Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
DenisBiryukov91 committed Feb 28, 2024
1 parent 6bce283 commit 6561fdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platform/clock.rs
Original file line number Diff line number Diff line change
@@ -37,9 +37,9 @@ unsafe fn get_elapsed_nanos(time: *const z_clock_t) -> u64 {
}
let now_t = z_clock_now().t;
if now_t > (*time).t {
return now_t - (*time).t;
now_t - (*time).t
} else {
return 0;
0
}
}

@@ -101,9 +101,9 @@ unsafe fn get_elapsed_nanos_system_clock(time: *const z_time_t) -> u64 {
}
let now_t = z_time_now().t;
if now_t > (*time).t {
return now_t - (*time).t;
now_t - (*time).t
} else {
return 0;
0
}
}

0 comments on commit 6561fdc

Please sign in to comment.