aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-02-11 15:44:20 +0000
committerAkshay <[email protected]>2020-02-11 15:44:20 +0000
commit036357bc3c6227ac747c89cc82c29ef6a940ccbe (patch)
treed21d4a45b77395136e232e8a541e4e3ea642e307 /src/views
parentecc2e2b296c4241b56d201012d7a7de5f96007db (diff)
serialize dates, remove cruft
Diffstat (limited to 'src/views')
-rw-r--r--src/views/bitview.rs4
-rw-r--r--src/views/countview.rs3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/views/bitview.rs b/src/views/bitview.rs
index 16b3ad8..b31b050 100644
--- a/src/views/bitview.rs
+++ b/src/views/bitview.rs
@@ -1,7 +1,6 @@
1use cursive::direction::Direction; 1use cursive::direction::Direction;
2use cursive::event::{Event, EventResult, Key}; 2use cursive::event::{Event, EventResult, Key};
3use cursive::theme::{BaseColor, Color, Effect, Style}; 3use cursive::theme::{BaseColor, Color, Style};
4use cursive::utils::markup::StyledString;
5use cursive::view::View; 4use cursive::view::View;
6use cursive::{Printer, Vec2}; 5use cursive::{Printer, Vec2};
7 6
@@ -46,7 +45,6 @@ impl View for BitView {
46 let true_style = Style::from(Color::Dark(BaseColor::Cyan)); 45 let true_style = Style::from(Color::Dark(BaseColor::Cyan));
47 let false_style = Style::from(Color::Dark(BaseColor::Magenta)); 46 let false_style = Style::from(Color::Dark(BaseColor::Magenta));
48 let future_style = Style::from(Color::Light(BaseColor::Black)); 47 let future_style = Style::from(Color::Light(BaseColor::Black));
49 let today_style = Style::from(Color::Dark(BaseColor::White));
50 48
51 for i in 1..=31 { 49 for i in 1..=31 {
52 let day = NaiveDate::from_ymd_opt(year, month, i); 50 let day = NaiveDate::from_ymd_opt(year, month, i);
diff --git a/src/views/countview.rs b/src/views/countview.rs
index 1e8855a..d906acb 100644
--- a/src/views/countview.rs
+++ b/src/views/countview.rs
@@ -1,7 +1,6 @@
1use cursive::direction::Direction; 1use cursive::direction::Direction;
2use cursive::event::{Event, EventResult, Key}; 2use cursive::event::{Event, EventResult, Key};
3use cursive::theme::{BaseColor, Color, Effect, Style}; 3use cursive::theme::{BaseColor, Color, Style};
4use cursive::utils::markup::StyledString;
5use cursive::view::View; 4use cursive::view::View;
6use cursive::{Printer, Vec2}; 5use cursive::{Printer, Vec2};
7 6