aboutsummaryrefslogtreecommitdiff
path: root/src/habit/bit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/habit/bit.rs')
-rw-r--r--src/habit/bit.rs4
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;
4use chrono::NaiveDate; 4use chrono::NaiveDate;
5use serde::{Deserialize, Serialize}; 5use serde::{Deserialize, Serialize};
6 6
7use crate::command::GoalKind;
7use crate::habit::prelude::default_auto; 8use crate::habit::prelude::default_auto;
8use crate::habit::traits::Habit; 9use crate::habit::traits::Habit;
9use crate::habit::{InnerData, TrackEvent}; 10use 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 }