File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use super :: shared_state:: { SharedState , Source } ;
22use futures:: FutureExt ;
33use std:: cell:: Cell ;
4- use std:: future:: { poll_fn , Future } ;
4+ use std:: future:: { Future , poll_fn } ;
55use std:: ops:: ControlFlow ;
66use std:: rc:: Rc ;
77
Original file line number Diff line number Diff line change 11use super :: shared_state:: { SharedState , Source } ;
22use futures:: FutureExt ;
33use std:: cell:: Cell ;
4- use std:: future:: { poll_fn , Future } ;
4+ use std:: future:: { Future , poll_fn } ;
55use std:: ops:: ControlFlow ;
66use std:: rc:: Rc ;
77
Original file line number Diff line number Diff line change 11#[ macro_export]
22macro_rules! sec {
3- ( $arg: expr) => { {
4- std:: time:: Duration :: from_secs( $arg)
5- } } ;
3+ ( $arg: expr) => { { std:: time:: Duration :: from_secs( $arg) } } ;
64}
75
86#[ macro_export]
97macro_rules! millisec {
10- ( $arg: expr) => { {
11- std:: time:: Duration :: from_millis( $arg)
12- } } ;
8+ ( $arg: expr) => { { std:: time:: Duration :: from_millis( $arg) } } ;
139}
1410
1511#[ macro_export]
1612macro_rules! min {
17- ( $arg: expr) => { {
18- std:: time:: Duration :: from_secs( $arg * 60 )
19- } } ;
13+ ( $arg: expr) => { { std:: time:: Duration :: from_secs( $arg * 60 ) } } ;
2014}
You can’t perform that action at this time.
0 commit comments