chore(deps): bump ratatui from 0.24.0 to 0.25.0 (#348)

* 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](https://github.com/ratatui-org/ratatui/compare/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] <support@github.com>

* Update API changes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2024-01-28 00:22:01 +08:00
committed by GitHub
parent 65638676e6
commit 9e0dc2b612
4 changed files with 18 additions and 17 deletions

28
Cargo.lock generated
View File

@@ -173,7 +173,7 @@ dependencies = [
"http_req",
"insta",
"ipnetwork",
"itertools 0.12.0",
"itertools",
"log",
"netstat2",
"once_cell",
@@ -880,15 +880,6 @@ dependencies = [
"serde",
]
[[package]]
name = "itertools"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57"
dependencies = [
"either",
]
[[package]]
name = "itertools"
version = "0.12.0"
@@ -1439,17 +1430,18 @@ dependencies = [
[[package]]
name = "ratatui"
version = "0.24.0"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ebc917cfb527a566c37ecb94c7e3fd098353516fb4eb6bea17015ade0182425"
checksum = "a5659e52e4ba6e07b2dad9f1158f578ef84a73762625ddb51536019f34d180eb"
dependencies = [
"bitflags 2.4.1",
"cassowary",
"crossterm",
"indoc",
"itertools 0.11.0",
"itertools",
"lru",
"paste",
"stability",
"strum",
"unicode-segmentation",
"unicode-width",
@@ -1750,6 +1742,16 @@ dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "stability"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebd1b177894da2a2d9120208c3386066af06a488255caabc5de8ddca22dbc3ce"
dependencies = [
"quote",
"syn 1.0.109",
]
[[package]]
name = "strsim"
version = "0.10.0"

View File

@@ -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"

View File

@@ -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);
}

View File

@@ -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(' ');