From be1540a4ac54a51fce46553303323936165f1735 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 16 Jul 2020 21:47:30 +0530 Subject: begin work on command line interface --- src/habit/traits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/habit') diff --git a/src/habit/traits.rs b/src/habit/traits.rs index 5092bc5..74fd00b 100644 --- a/src/habit/traits.rs +++ b/src/habit/traits.rs @@ -39,7 +39,7 @@ pub trait HabitWrapper: erased_serde::Serialize { fn on_event(&mut self, event: Event) -> EventResult; fn required_size(&mut self, _: Vec2) -> Vec2; fn take_focus(&mut self, _: Direction) -> bool; - fn get_name(&self) -> String; + fn name(&self) -> String; fn set_view_month_offset(&mut self, offset: u32); fn view_month_offset(&self) -> u32; @@ -78,7 +78,7 @@ macro_rules! auto_habit_impl { fn modify(&mut self, date: NaiveDate, event: TrackEvent) { Habit::modify(self, date, event); } - fn get_name(&self) -> String { + fn name(&self) -> String { Habit::name(self) } fn set_view_month_offset(&mut self, offset: u32) { -- cgit v1.2.3