From c68c5e52ea6eae851ef0804d66f847f75a1cd0d4 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 24 Nov 2020 14:13:44 +0200 Subject: Fix macro --- src/partition.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); $( -- cgit v1.2.3