Skip to content

Commit

Permalink
tests: timer: Run cargo fmt
Browse files Browse the repository at this point in the history
Format the source according to the default rules. This provides a
baseline for future changes to require well-formatted source.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Jan 16, 2025
1 parent 4f7996d commit 8d78168
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/timer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ use alloc::{boxed::Box, vec::Vec};
use rand::Rng;
use rand_pcg::Pcg32;
use zephyr::{
printkln, sync::{atomic::AtomicUsize, Arc}, time::{Duration, NoWait, Tick}, timer::{Callback, CallbackTimer, SimpleTimer, StoppedTimer}
printkln,
sync::{atomic::AtomicUsize, Arc},
time::{Duration, NoWait, Tick},
timer::{Callback, CallbackTimer, SimpleTimer, StoppedTimer},
};

// Test the timers interface. There are a couple of things this tries to test:
Expand Down Expand Up @@ -77,7 +80,9 @@ fn timer_test() {

// Now that everything is done and cleaned up, allow a little time to pass to make sure there
// are no stray timers. We can re-use the total test timer.
let mut total_test = total_test.stop().start_simple(Duration::millis_at_least(1), NoWait);
let mut total_test = total_test
.stop()
.start_simple(Duration::millis_at_least(1), NoWait);
total_test.read_count_wait();
}

Expand Down

0 comments on commit 8d78168

Please sign in to comment.