summaryrefslogtreecommitdiffstats
path: root/src/canvas.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-03-13 01:07:24 -0400
committerGitHub <noreply@github.com>2020-03-13 01:07:24 -0400
commit1968bb14b484e52dd679d91e9f27d0f30a7dd8fd (patch)
treeb812e1f1358582aeaf93df521ac24435d471b239 /src/canvas.rs
parentd9747f78e8277d85970bb4e52a8b45035252c157 (diff)
Cleanup before modularity (#84)
* Uptick some crates, update README dependencies * Cleanup before modularity feature. * Fix missing reset zoom on reset * Fixed reset... not resetting search or data displayed * Cleaned up options a tiny bit to make more sense. * Cleaned up some TODOs and the like. * specify only build master branch.
Diffstat (limited to 'src/canvas.rs')
-rw-r--r--src/canvas.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/canvas.rs b/src/canvas.rs
index eb534adb..8aaa1752 100644
--- a/src/canvas.rs
+++ b/src/canvas.rs
@@ -129,9 +129,7 @@ impl Painter {
}
}
- // TODO: [REFACTOR] We should clean this up tbh
// TODO: [FEATURE] Auto-resizing dialog sizes.
- #[allow(clippy::cognitive_complexity)]
pub fn draw_data<B: Backend>(
&mut self, terminal: &mut Terminal<B>, app_state: &mut app::App,
) -> error::Result<()> {
@@ -139,9 +137,6 @@ impl Painter {
let current_height = terminal_size.height;
let current_width = terminal_size.width;
- // TODO: [OPT] we might be able to add an argument s.t. if there is
- // no resize AND it's not a data update (or process refresh/search/etc.)
- // then just... don't draw again!
if self.height == 0 && self.width == 0 {
self.height = current_height;
self.width = current_width;
@@ -336,7 +331,6 @@ impl Painter {
);
}
} else {
- // TODO: [TUI] Change this back to a more even 33/33/34 when TUI releases
let vertical_chunks = Layout::default()
.direction(Direction::Vertical)
.margin(1)