We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79c8cc4 commit 78b725cCopy full SHA for 78b725c
1 file changed
src/time.rs
@@ -1,20 +1,14 @@
1
#[macro_export]
2
macro_rules! sec {
3
- ($arg:expr) => {{
4
- std::time::Duration::from_secs($arg)
5
- }};
+ ($arg:expr) => {{ std::time::Duration::from_secs($arg) }};
6
}
7
8
9
macro_rules! millisec {
10
11
- std::time::Duration::from_millis($arg)
12
+ ($arg:expr) => {{ std::time::Duration::from_millis($arg) }};
13
14
15
16
macro_rules! min {
17
18
- std::time::Duration::from_secs($arg * 60)
19
+ ($arg:expr) => {{ std::time::Duration::from_secs($arg * 60) }};
20
0 commit comments