Closed
Description
Describe the bug
Fresh cargo install jwt-ui
fails with build errors.
Log
error[E0308]: mismatched types
--> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jwt-ui-1.1.0/src/ui/encoder.rs:133:5
|
132 | textarea.set_block(
| --------- arguments to this method are incorrect
133 | / Block::default()
134 | | .borders(Borders::ALL)
135 | | .style(get_input_style(&text_input.input_mode, light_theme)),
| |__________________________________________________________________^ expected `ratatui::widgets::block::Block<'_>`, found `ratatui::widgets::Block<'_>`
|
= note: `ratatui::widgets::Block<'_>` and `ratatui::widgets::block::Block<'_>` have similar names, but are actually distinct types
note: `ratatui::widgets::Block<'_>` is defined in crate `ratatui`
--> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.25.0/src/widgets/block.rs:233:1
|
233 | pub struct Block<'a> {
| ^^^^^^^^^^^^^^^^^^^^
note: `ratatui::widgets::block::Block<'_>` is defined in crate `ratatui`
--> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.2/src/widgets/block.rs:64:1
|
64 | pub struct Block<'a> {
| ^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
--> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1648:12
To Reproduce
Steps to reproduce the behavior or a screencast
- cargo install jwt-ui
Expected behavior
I expect it installs jwt-ui
properly with no errors.
Desktop (please complete the following information):
- WSL2
- Windows Terminal
- bash, rustc 1.77.2, rustup 1.27.0
- jwt-ui version: 1.1.0
Metadata
Metadata
Assignees
Labels
No labels