From e9bc2d4887a466f6837ad589f0484b6efe35e2a6 Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Sat, 30 Nov 2024 11:19:56 +0100 Subject: [PATCH] style: fix formatting --- src/components/date_time.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/date_time.rs b/src/components/date_time.rs index 04defb2..9b63220 100644 --- a/src/components/date_time.rs +++ b/src/components/date_time.rs @@ -297,7 +297,9 @@ impl From for NaiveDate { DatePerhapsTime::Date(date) => date, DatePerhapsTime::DateTime(CalendarDateTime::Floating(date_time)) => date_time.date(), DatePerhapsTime::DateTime(CalendarDateTime::Utc(date_time)) => date_time.date_naive(), - DatePerhapsTime::DateTime(CalendarDateTime::WithTimezone { date_time, tzid: _ }) => date_time.date(), + DatePerhapsTime::DateTime(CalendarDateTime::WithTimezone { date_time, tzid: _ }) => { + date_time.date() + } } } }