diff --git a/server/src/routes/pages/stats.rs b/server/src/routes/pages/stats.rs index 61b069e..98f9852 100644 --- a/server/src/routes/pages/stats.rs +++ b/server/src/routes/pages/stats.rs @@ -352,14 +352,9 @@ where let month = day.month(); - let month_border = |other_day| match days.get(&other_day) { - Some(_) => other_day.month() != month, - None => true, - }; - - let month_or_week_border = |other_day| match days.get(&other_day) { - Some(_) => other_day.iso_week() != week || month_border(other_day), - None => true, + let month_border = |other_day: Date<_>| other_day.month() != month; + let month_or_week_border = |other_day: Date<_>| { + other_day.iso_week() != week || month_border(other_day) }; const MIN_WEIGHT: f32 = 0.5; @@ -378,7 +373,6 @@ where duration, }; - //(day.weekday(), Some(ctx)) Some(ctx) }) .collect()