diff options
Diffstat (limited to 'src/habit/bit.rs')
-rw-r--r-- | src/habit/bit.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/habit/bit.rs b/src/habit/bit.rs index da64ece..c0d5f70 100644 --- a/src/habit/bit.rs +++ b/src/habit/bit.rs | |||
@@ -4,6 +4,7 @@ use std::default::Default; | |||
4 | use chrono::NaiveDate; | 4 | use chrono::NaiveDate; |
5 | use serde::{Deserialize, Serialize}; | 5 | use serde::{Deserialize, Serialize}; |
6 | 6 | ||
7 | use crate::command::GoalKind; | ||
7 | use crate::habit::prelude::default_auto; | 8 | use crate::habit::prelude::default_auto; |
8 | use crate::habit::traits::Habit; | 9 | use crate::habit::traits::Habit; |
9 | use crate::habit::{InnerData, TrackEvent}; | 10 | use crate::habit::{InnerData, TrackEvent}; |
@@ -66,6 +67,9 @@ impl Habit for Bit { | |||
66 | fn set_name(&mut self, n: impl AsRef<str>) { | 67 | fn set_name(&mut self, n: impl AsRef<str>) { |
67 | self.name = n.as_ref().to_owned(); | 68 | self.name = n.as_ref().to_owned(); |
68 | } | 69 | } |
70 | fn kind(&self) -> GoalKind { | ||
71 | GoalKind::Bit | ||
72 | } | ||
69 | fn set_goal(&mut self, g: Self::HabitType) { | 73 | fn set_goal(&mut self, g: Self::HabitType) { |
70 | self.goal = g; | 74 | self.goal = g; |
71 | } | 75 | } |