From 0e75ef4efe27535f04b8f5bfc13b2165c3343781 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Nov 2024 14:23:15 +0100 Subject: Fix clippy warnings --- src/model/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model') 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()) } } } -- cgit v1.2.3