Skip to content

Commit 44fc28d

Browse files
committed
chore: fmt
1 parent 83de0ee commit 44fc28d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/timer/epoll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use std::sync::{
1515
Arc, Mutex,
1616
};
1717
use std::{
18-
time::Duration,
1918
thread::{self, JoinHandle},
19+
time::Duration,
2020
};
2121

2222
/// A thread that sends a notification every 10th second

src/timer/kqueue.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use std::sync::{
1313
Arc, Mutex,
1414
};
1515
use std::{
16-
time::Duration,
1716
thread::{self, JoinHandle},
17+
time::Duration,
1818
};
1919

2020
/// A thread that sends a notification every 10th second
@@ -47,7 +47,8 @@ impl Timer {
4747

4848
let handle = Some(thread::spawn(move || {
4949
// Wait for initial expiration
50-
let initial_event = Timer::register_initial_expiration(kqueue, Duration::from_millis(0))?;
50+
let initial_event =
51+
Timer::register_initial_expiration(kqueue, Duration::from_millis(0))?;
5152
Timer::wait_event(kqueue, [initial_event].as_mut_ptr())?;
5253

5354
// Register loop event

0 commit comments

Comments
 (0)