Skip to content

Commit

Permalink
Merge pull request #8 from zebreus/main
Browse files Browse the repository at this point in the history
Fix compatibility with Rust 1.74+
  • Loading branch information
aantn committed Jan 4, 2024
2 parents 25091d3 + 9a76ffd commit d1d7b62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ pub fn draw_ui<T: tui::backend::Backend>(
) {
terminal
.draw(|f| {
let chunks = Layout::default()
let chunks: Vec<tui::layout::Rect> = Layout::default()
.direction(Direction::Vertical)
.margin(2)
.constraints(
iter::repeat(Constraint::Length(1))
.take(args.cmds.len())
.chain(iter::once(Constraint::Percentage(10)))
.collect::<Vec<_>>()
.as_ref(),
.collect::<Vec<Constraint>>(),
)
.split(f.size());
for (((cmd_id, cmd), stats), &style) in args
Expand Down

0 comments on commit d1d7b62

Please sign in to comment.