aboutsummaryrefslogtreecommitdiff
path: root/src/gui/app.rs
diff options
context:
space:
mode:
authorJoris2022-12-18 20:04:08 +0100
committerJoris2022-12-18 20:04:08 +0100
commit08040993c114d9331edcc3f032bf3ad357ecf3d1 (patch)
tree87fdcf381ab729cb9292d9ee3b154be56f61ba6a /src/gui/app.rs
parent80fdf874ac74efea64c7a21937ee790a4d871163 (diff)
downloadcalendar-08040993c114d9331edcc3f032bf3ad357ecf3d1.tar.gz
calendar-08040993c114d9331edcc3f032bf3ad357ecf3d1.tar.bz2
calendar-08040993c114d9331edcc3f032bf3ad357ecf3d1.zip
Format sources
Diffstat (limited to 'src/gui/app.rs')
-rw-r--r--src/gui/app.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/app.rs b/src/gui/app.rs
index c0fc038..e48c93a 100644
--- a/src/gui/app.rs
+++ b/src/gui/app.rs
@@ -44,7 +44,8 @@ impl App {
let today = chrono::offset::Local::now().naive_utc().date();
// TODO: error handling
let start_date =
- NaiveDate::from_isoywd_opt(today.year(), today.iso_week().week(), Weekday::Mon).unwrap();
+ NaiveDate::from_isoywd_opt(today.year(), today.iso_week().week(), Weekday::Mon)
+ .unwrap();
let end_date = start_date + Duration::days(7 * 4 - 1);
let events = db::events::list_non_recurring_between(&conn, start_date, end_date)?;