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