diff options
author | extrawurst <mail@rusticorn.com> | 2024-02-25 12:09:08 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2024-02-25 12:09:08 +0100 |
commit | 47db649e39d98560ffc6f977f0e33e8ff9088d18 (patch) | |
tree | b4acbdd4dba64b10c7752f3cd5e800ab2991639f | |
parent | 11401872b57f2862caa9a9f4322530880c9b49a5 (diff) |
ratatui 0.25 update
-rw-r--r-- | Cargo.lock | 57 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | deny.toml | 6 | ||||
-rw-r--r-- | src/popups/blame_file.rs | 3 | ||||
-rw-r--r-- | src/popups/file_revlog.rs | 3 | ||||
-rw-r--r-- | src/popups/taglist.rs | 3 | ||||
-rw-r--r-- | src/ui/scrolllist.rs | 10 |
7 files changed, 44 insertions, 40 deletions
@@ -679,7 +679,7 @@ checksum = "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] [[package]] @@ -741,7 +741,7 @@ dependencies = [ "fuzzy-matcher", "gh-emoji", "indexmap", - "itertools 0.12.1", + "itertools", "log", "notify", "notify-debouncer-mini", @@ -871,15 +871,6 @@ version = "0.1.3" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" @@ -1275,18 +1266,19 @@ 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.2", "cassowary", "crossterm", "indoc", - "itertools 0.11.0", + "itertools", "lru", "paste", "serde", + "stability", "strum", "unicode-segmentation", "unicode-width", @@ -1443,7 +1435,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] [[package]] @@ -1479,7 +1471,7 @@ checksum = "b93fb4adc70021ac1b47f7d45e8cc4169baaa7ea58483bc5b721d19a26202212" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] [[package]] @@ -1559,6 +1551,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" [[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.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1581,7 +1583,7 @@ checksum = "f14a349c27ebe59faba22f933c9c734d428da7231e88a247e9d8c61eea964ddb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] [[package]] @@ -1603,7 +1605,18 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn", + "syn 2.0.49", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] @@ -1677,7 +1690,7 @@ checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] [[package]] @@ -1855,7 +1868,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn", + "syn 2.0.49", "wasm-bindgen-shared", ] @@ -1877,7 +1890,7 @@ checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2096,5 +2109,5 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.49", ] @@ -36,7 +36,7 @@ log = "0.4" notify = "6.1" notify-debouncer-mini = "0.4" once_cell = "1" -ratatui = { version = "=0.24.0", default-features = false, features = [ +ratatui = { version = "0.25", default-features = false, features = [ 'crossterm', 'serde', ] } @@ -11,8 +11,4 @@ version = "1.0.3" [bans] multiple-versions = "deny" -skip-tree = [ - { name = "windows-sys" }, - { name = "itertools" }, - { name = "bitflags" }, -] +skip-tree = [{ name = "windows-sys" }, { name = "bitflags" }] diff --git a/src/popups/blame_file.rs b/src/popups/blame_file.rs index 62d1c748..cc1f51e8 100644 --- a/src/popups/blame_file.rs +++ b/src/popups/blame_file.rs @@ -136,8 +136,7 @@ impl DrawableComponent for BlameFilePopup { let title_with_highlight_progress = format!("{title}{syntax_highlight_progress}"); - let table = Table::new(rows) - .widths(&constraints) + let table = Table::new(rows, constraints) .column_spacing(1) .highlight_style(self.theme.text(true, true)) .block( diff --git a/src/popups/file_revlog.rs b/src/popups/file_revlog.rs index 5450a27b..1bfc0b26 100644 --- a/src/popups/file_revlog.rs +++ b/src/popups/file_revlog.rs @@ -389,8 +389,7 @@ impl FileRevlogPopup { let title = self.get_title(); let rows = self.get_rows(now); - let table = Table::new(rows) - .widths(&constraints) + let table = Table::new(rows, constraints) .column_spacing(1) .highlight_style(self.theme.text(true, true)) .block( diff --git a/src/popups/taglist.rs b/src/popups/taglist.rs index bc902c26..2abe43e5 100644 --- a/src/popups/taglist.rs +++ b/src/popups/taglist.rs @@ -92,8 +92,7 @@ impl DrawableComponent for TagListPopup { let rows = self.get_rows(); let number_of_rows = rows.len(); - let table = Table::new(rows) - .widths(&constraints) + let table = Table::new(rows, constraints) .column_spacing(1) .highlight_style(self.theme.text(true, true)) .block( diff --git a/src/ui/scrolllist.rs b/src/ui/scrolllist.rs index 9d4f80a8..d012ac9a 100644 --- a/src/ui/scrolllist.rs +++ b/src/ui/scrolllist.rs @@ -48,12 +48,10 @@ where { fn render(self, area: Rect, buf: &mut Buffer) { // Render items - List::new( - self.items.map(ListItem::new).collect::<Vec<ListItem>>(), - ) - .block(self.block.unwrap_or_default()) - .style(self.style) - .render(area, buf); + List::new(self.items.map(ListItem::new)) + .block(self.block.unwrap_or_default()) + .style(self.style) + .render(area, buf); } } |