aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-05-02 11:12:29 +0100
committerAkshay <[email protected]>2020-05-02 11:12:29 +0100
commit3b576d2c39e63f05c1c919579f61866a7798dc1e (patch)
treebb723fd387a394420dd3b6d767501f3c2dad90bd /src/main.rs
parentb1581c83ff6157041b040cf7b05799dfb4f4a50b (diff)
typetag dosen't support generics, use macro hack until then
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs
index cb3393b..2037a51 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -57,25 +57,25 @@ fn main() {
57 let mut s = Cursive::default(); 57 let mut s = Cursive::default();
58 58
59 let mut gymming = Count::new("gym", 5); 59 let mut gymming = Count::new("gym", 5);
60 gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 11), 7); 60 gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 11), 7);
61 gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 12), 8); 61 gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 12), 8);
62 gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 13), 9); 62 gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 13), 9);
63 gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 14), 10); 63 gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 14), 10);
64 gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 15), 11); 64 gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 15), 11);
65 65
66 let mut reading = Bit::new("read"); 66 let mut reading = Bit::new("read");
67 reading.insert_entry(NaiveDate::from_ymd(2020, 3, 11), true.into()); 67 reading.insert_entry(NaiveDate::from_ymd(2020, 4, 11), true.into());
68 reading.insert_entry(NaiveDate::from_ymd(2020, 3, 12), false.into()); 68 reading.insert_entry(NaiveDate::from_ymd(2020, 4, 12), false.into());
69 reading.insert_entry(NaiveDate::from_ymd(2020, 3, 13), true.into()); 69 reading.insert_entry(NaiveDate::from_ymd(2020, 4, 13), true.into());
70 reading.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); 70 reading.insert_entry(NaiveDate::from_ymd(2020, 4, 14), false.into());
71 reading.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); 71 reading.insert_entry(NaiveDate::from_ymd(2020, 4, 15), true.into());
72 72
73 let mut walking = Bit::new("walk"); 73 let mut walking = Bit::new("walk");
74 walking.insert_entry(NaiveDate::from_ymd(2020, 3, 11), true.into()); 74 walking.insert_entry(NaiveDate::from_ymd(2020, 4, 11), true.into());
75 walking.insert_entry(NaiveDate::from_ymd(2020, 3, 12), false.into()); 75 walking.insert_entry(NaiveDate::from_ymd(2020, 4, 12), false.into());
76 walking.insert_entry(NaiveDate::from_ymd(2020, 3, 13), true.into()); 76 walking.insert_entry(NaiveDate::from_ymd(2020, 4, 13), true.into());
77 walking.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); 77 walking.insert_entry(NaiveDate::from_ymd(2020, 4, 14), false.into());
78 walking.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); 78 walking.insert_entry(NaiveDate::from_ymd(2020, 4, 15), true.into());
79 79
80 let mut app = App::new(); 80 let mut app = App::new();
81 app.add_habit(Box::new(gymming)); 81 app.add_habit(Box::new(gymming));