diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-04-18 18:05:41 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-04-18 18:05:41 -0400 |
commit | bc571588e4278f3156a3caa770fc2893268421d4 (patch) | |
tree | c99b9de66b909d08f789940de2fe7f61e7606971 /src/canvas/widgets/basic_table_arrows.rs | |
parent | 57b65ce7509c61ad7331e50c9d51d890768602fc (diff) |
refactor: Update tui to 0.9; refactor with new features
Diffstat (limited to 'src/canvas/widgets/basic_table_arrows.rs')
-rw-r--r-- | src/canvas/widgets/basic_table_arrows.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/canvas/widgets/basic_table_arrows.rs b/src/canvas/widgets/basic_table_arrows.rs index 05392fb4..8284c691 100644 --- a/src/canvas/widgets/basic_table_arrows.rs +++ b/src/canvas/widgets/basic_table_arrows.rs @@ -9,7 +9,7 @@ use tui::{ backend::Backend, layout::{Constraint, Layout, Rect}, terminal::Frame, - widgets::{Block, Paragraph, Text, Widget}, + widgets::{Block, Paragraph, Text}, }; pub trait BasicTableArrows { @@ -59,8 +59,9 @@ impl BasicTableArrows for Painter { .horizontal_margin(1) .split(draw_loc); - Paragraph::new(arrow_text.iter()) - .block(Block::default()) - .render(f, margined_draw_loc[0]); + f.render_widget( + Paragraph::new(arrow_text.iter()).block(Block::default()), + margined_draw_loc[0], + ); } } |