File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ use std::sync::{
1515 Arc , Mutex ,
1616} ;
1717use std:: {
18- time:: Duration ,
1918 thread:: { self , JoinHandle } ,
19+ time:: Duration ,
2020} ;
2121
2222/// A thread that sends a notification every 10th second
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ use std::sync::{
1313 Arc , Mutex ,
1414} ;
1515use 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
You can’t perform that action at this time.
0 commit comments