diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2024-01-28 00:22:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 00:22:01 +0800 |
commit | 9e0dc2b6127512f13f962cc4d1f6fcc2eb6fa45b (patch) | |
tree | d11a505901d7a6a37ee8fd278c691bcaa2e65e55 | |
parent | 65638676e6b35412d5e34cca9d8d690afcf649c6 (diff) |
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>
-rw-r--r-- | Cargo.lock | 28 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/display/components/table.rs | 3 | ||||
-rw-r--r-- | src/tests/fakes/fake_output.rs | 2 |
4 files changed, 18 insertions, 17 deletions
@@ -173,7 +173,7 @@ dependencies = [ "http_req", "insta", "ipnetwork", - "itertools 0.12.0", + "itertools", "log", "netstat2", "once_cell", @@ -882,15 +882,6 @@ dependencies = [ [[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" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0" @@ -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", @@ -1751,6 +1743,16 @@ dependencies = [ ] [[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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -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" diff --git a/src/display/components/table.rs b/src/display/components/table.rs index a003662..6e602d1 100644 --- a/src/display/components/table.rs +++ b/src/display/components/table.rs @@ -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); } diff --git a/src/tests/fakes/fake_output.rs b/src/tests/fakes/fake_output.rs index 7741cc2..524fa6c 100644 --- a/src/tests/fakes/fake_output.rs +++ b/src/tests/fakes/fake_output.rs @@ -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(' '); |