Skip to content

Commit 3f490ab

Browse files
committed
tests: timer: Run cargo fmt
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]>
1 parent c3e0320 commit 3f490ab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/timer/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ use alloc::{boxed::Box, vec::Vec};
1111
use rand::Rng;
1212
use rand_pcg::Pcg32;
1313
use zephyr::{
14-
printkln, sync::{atomic::AtomicUsize, Arc}, time::{Duration, NoWait, Tick}, timer::{Callback, CallbackTimer, SimpleTimer, StoppedTimer}
14+
printkln,
15+
sync::{atomic::AtomicUsize, Arc},
16+
time::{Duration, NoWait, Tick},
17+
timer::{Callback, CallbackTimer, SimpleTimer, StoppedTimer},
1518
};
1619

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

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

0 commit comments

Comments
 (0)