diff options
Diffstat (limited to 'src/model/event.rs')
-rw-r--r-- | src/model/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/event.rs b/src/model/event.rs index 3e5cc76..98ce416 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -53,7 +53,7 @@ pub fn repetitions_between( for event in events { if let Some(repetition) = &event.repetition { for date in repetition.between(event.date, start, end) { - res.entry(date).or_insert_with(Vec::new).push(event.clone()) + res.entry(date).or_default().push(event.clone()) } } } |