diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2020-11-24 14:13:44 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2020-11-24 14:13:44 +0200 |
commit | c68c5e52ea6eae851ef0804d66f847f75a1cd0d4 (patch) | |
tree | 3ca61c279200098b1b68d5a6e1ed7b02eb7f78a4 | |
parent | b488d946cf1a1572000ab3e7137946c3d2e9cb32 (diff) | |
download | frotate.rs-c68c5e52ea6eae851ef0804d66f847f75a1cd0d4.tar.gz |
Fix macro
-rw-r--r-- | src/partition.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/partition.rs b/src/partition.rs index 3f2837d..b2305a1 100644 --- a/src/partition.rs +++ b/src/partition.rs @@ -15,7 +15,9 @@ mod tests { use super::partition_days; macro_rules! list { - ( $( $x:expr ),* ) => { + () => { LinkedList::new() }; + + ($( $x:expr ),+ ) => { { let mut temp_list = LinkedList::new(); $( |