aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJoris2024-11-17 14:23:15 +0100
committerJoris2024-11-17 14:23:15 +0100
commit0e75ef4efe27535f04b8f5bfc13b2165c3343781 (patch)
treecdae490293d94b74f45e47c59b4aba57b7316c41 /src/model
parent5f526ef14285b5fd2dc5892d6dd8b307981f743f (diff)
Fix clippy warnings1.3.0
Diffstat (limited to 'src/model')
-rw-r--r--src/model/event.rs2
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())
}
}
}