diff options
author | Joris | 2024-11-17 14:23:15 +0100 |
---|---|---|
committer | Joris | 2024-11-17 14:23:15 +0100 |
commit | 0e75ef4efe27535f04b8f5bfc13b2165c3343781 (patch) | |
tree | cdae490293d94b74f45e47c59b4aba57b7316c41 /src/model/event.rs | |
parent | 5f526ef14285b5fd2dc5892d6dd8b307981f743f (diff) |
Fix clippy warnings1.3.0
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()) } } } |