Skip to content

Commit

Permalink
chore(deps): bump ratatui from 0.24.0 to 0.25.0 (#348)
Browse files Browse the repository at this point in the history
* chore(deps): bump ratatui from 0.24.0 to 0.25.0

Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/ratatui-org/ratatui/releases)
- [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md)
- [Commits](ratatui/ratatui@v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: ratatui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update API changes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cyqsimon <[email protected]>
  • Loading branch information
dependabot[bot] and cyqsimon authored Jan 27, 2024
1 parent 6563867 commit 9e0dc2b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
28 changes: 15 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ log = "0.4.20"
once_cell = "1.19.0"
pnet = "0.34.0"
pnet_macros_support = "0.34.0"
ratatui = "0.24.0"
ratatui = "0.25.0"
resolv-conf = "0.7.0"
simplelog = "0.12.1"
thiserror = "1.0.53"
Expand Down
3 changes: 1 addition & 2 deletions src/display/components/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,9 @@ impl Table {
.map(Constraint::Length)
.collect();

let table = ratatui::widgets::Table::new(tui_rows_iter)
let table = ratatui::widgets::Table::new(tui_rows_iter, widths_constraints)
.block(Block::default().title(self.title).borders(Borders::ALL))
.header(Row::new(column_names).style(Style::default().fg(Color::Yellow)))
.widths(&widths_constraints)
.column_spacing(spacer_width);
frame.render_widget(table, rect);
}
Expand Down
2 changes: 1 addition & 1 deletion src/tests/fakes/fake_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Backend for TestBackend {
Some(cell) => {
// this will contain no style information at all
// should be good enough for testing
string.push_str(&cell.symbol);
string.push_str(cell.symbol());
}
None => {
string.push(' ');
Expand Down

0 comments on commit 9e0dc2b

Please sign in to comment.