diff options
Diffstat (limited to 'src/habit.rs')
-rw-r--r-- | src/habit.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/habit.rs b/src/habit.rs index 9872bbc..48dd363 100644 --- a/src/habit.rs +++ b/src/habit.rs | |||
@@ -66,6 +66,7 @@ pub trait HabitWrapper: erased_serde::Serialize { | |||
66 | fn take_focus(&mut self, _: Direction) -> bool; | 66 | fn take_focus(&mut self, _: Direction) -> bool; |
67 | fn set_view_month_offset(&mut self, offset: u32); | 67 | fn set_view_month_offset(&mut self, offset: u32); |
68 | fn view_month_offset(&self) -> u32; | 68 | fn view_month_offset(&self) -> u32; |
69 | fn get_name(&self) -> String; | ||
69 | } | 70 | } |
70 | 71 | ||
71 | macro_rules! auto_habit_impl { | 72 | macro_rules! auto_habit_impl { |
@@ -99,6 +100,9 @@ macro_rules! auto_habit_impl { | |||
99 | fn view_month_offset(&self) -> u32 { | 100 | fn view_month_offset(&self) -> u32 { |
100 | Habit::view_month_offset(self) | 101 | Habit::view_month_offset(self) |
101 | } | 102 | } |
103 | fn get_name(&self) -> String { | ||
104 | Habit::name(self) | ||
105 | } | ||
102 | } | 106 | } |
103 | }; | 107 | }; |
104 | } | 108 | } |