remove unsed function
This commit is contained in:
parent
063a74f6f3
commit
6844470500
14
src/app.rs
14
src/app.rs
@ -44,20 +44,6 @@ pub struct CalendarApp {
|
|||||||
events: EventsCollection,
|
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 {
|
impl CalendarApp {
|
||||||
pub fn with_files(calendar_paths: std::vec::Vec<path::PathBuf>) -> Self {
|
pub fn with_files(calendar_paths: std::vec::Vec<path::PathBuf>) -> Self {
|
||||||
let view_date = Utc::now().date_naive();
|
let view_date = Utc::now().date_naive();
|
||||||
|
Loading…
Reference in New Issue
Block a user