aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2020-11-24 14:13:44 +0200
committerIgor Pashev <pashev.igor@gmail.com>2020-11-24 14:13:44 +0200
commitc68c5e52ea6eae851ef0804d66f847f75a1cd0d4 (patch)
tree3ca61c279200098b1b68d5a6e1ed7b02eb7f78a4
parentb488d946cf1a1572000ab3e7137946c3d2e9cb32 (diff)
downloadfrotate.rs-c68c5e52ea6eae851ef0804d66f847f75a1cd0d4.tar.gz
Fix macro
-rw-r--r--src/partition.rs4
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();
$(