aboutsummaryrefslogtreecommitdiff
path: root/src/habit/traits.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-16 17:17:30 +0100
committerAkshay <[email protected]>2020-07-16 17:17:30 +0100
commitbe1540a4ac54a51fce46553303323936165f1735 (patch)
tree1f499847a807a0306a5b8a4b0287a23371fa29e4 /src/habit/traits.rs
parent7d5e46626110a351104ededeaebdcb9723c7e786 (diff)
begin work on command line interface
Diffstat (limited to 'src/habit/traits.rs')
-rw-r--r--src/habit/traits.rs4
1 files changed, 2 insertions, 2 deletions
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 {
39 fn on_event(&mut self, event: Event) -> EventResult; 39 fn on_event(&mut self, event: Event) -> EventResult;
40 fn required_size(&mut self, _: Vec2) -> Vec2; 40 fn required_size(&mut self, _: Vec2) -> Vec2;
41 fn take_focus(&mut self, _: Direction) -> bool; 41 fn take_focus(&mut self, _: Direction) -> bool;
42 fn get_name(&self) -> String; 42 fn name(&self) -> String;
43 43
44 fn set_view_month_offset(&mut self, offset: u32); 44 fn set_view_month_offset(&mut self, offset: u32);
45 fn view_month_offset(&self) -> u32; 45 fn view_month_offset(&self) -> u32;
@@ -78,7 +78,7 @@ macro_rules! auto_habit_impl {
78 fn modify(&mut self, date: NaiveDate, event: TrackEvent) { 78 fn modify(&mut self, date: NaiveDate, event: TrackEvent) {
79 Habit::modify(self, date, event); 79 Habit::modify(self, date, event);
80 } 80 }
81 fn get_name(&self) -> String { 81 fn name(&self) -> String {
82 Habit::name(self) 82 Habit::name(self)
83 } 83 }
84 fn set_view_month_offset(&mut self, offset: u32) { 84 fn set_view_month_offset(&mut self, offset: u32) {