aboutsummaryrefslogtreecommitdiff
path: root/src/habit.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-04 15:07:02 +0100
committerAkshay <[email protected]>2020-07-04 15:07:02 +0100
commitb1b8369fe5621ff5b2222977bb357bec15a911e2 (patch)
tree3c4668178489dd5c47b0cdb9ca7450f5b1eabe3d /src/habit.rs
parent1807562540c6c3c2529d88f8d81b7ceaf82b6fbb (diff)
new 'delete' command
Diffstat (limited to 'src/habit.rs')
-rw-r--r--src/habit.rs4
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
71macro_rules! auto_habit_impl { 72macro_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}