From 684447050049d868c7d7512cbf715a17229c97e0 Mon Sep 17 00:00:00 2001 From: Fabrizio Iannetti Date: Fri, 12 Jul 2024 07:10:25 +0200 Subject: [PATCH] remove unsed function --- src/app.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/app.rs b/src/app.rs index 976536c..9eaebd1 100644 --- a/src/app.rs +++ b/src/app.rs @@ -44,20 +44,6 @@ pub struct CalendarApp { events: EventsCollection, } -impl std::fmt::Display for ViewMode { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - match self { - ViewMode::Week => "Week", - ViewMode::Month => "Month", - ViewMode::Year => "Year", - } - ) - } -} - impl CalendarApp { pub fn with_files(calendar_paths: std::vec::Vec) -> Self { let view_date = Utc::now().date_naive();