error[E0308]: mismatched types
--> /Users/tjex/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/nostui-0.1.0/src/components/home.rs:287:34
|
287 | self.input.set_block(block);
| --------- ^^^^^ expected `ratatui::widgets::block::Block<'_>`, found `ratatui::widgets::Block<'_>`
| |
| arguments to this method are incorrect
|
= 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`
--> /Users/tjex/.local/share/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`
--> /Users/tjex/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/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
--> /Users/tjex/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1648:12
|
1648 | pub fn set_block(&mut self, block: Block<'a>) {
| ^^^^^^^^^
error[E0277]: the trait bound `impl ratatui::widgets::Widget + '_: ratatui::widgets::Widget` is not satisfied
--> /Users/tjex/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/nostui-0.1.0/src/components/home.rs:288:29
|
288 | f.render_widget(self.input.widget(), input_area);
| ------------- ^^^^^^^^^^^^^^^^^^^ the trait `ratatui::widgets::Widget` is not implemented for `impl ratatui::widgets::Widget + '_`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `ratatui::widgets::Widget`:
text_note::TextNote
BarChart<'a>
ratatui::widgets::Block<'a>
Canvas<'a, F>
Chart<'a>
ratatui::widgets::Clear
Gauge<'a>
LineGauge<'a>
and 5 others
note: required by a bound in `ratatui::Frame::<'_>::render_widget`
--> /Users/tjex/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.25.0/src/terminal.rs:614:12
|
612 | pub fn render_widget<W>(&mut self, widget: W, area: Rect)
| ------------- required by a bound in this associated function
613 | where
614 | W: Widget,
| ^^^^^^ required by this bound in `Frame::<'_>::render_widget`
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `nostui` (bin "nostui") due to 2 previous errors
error: failed to compile `nostui v0.1.0`, intermediate artifacts can be found at `/var/folders/45/5qcnyymn0gj_241x_c9trs1m0000gn/T/cargo-installT0JXBu`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
OS/Arch: Darwin arm64
cargo install nostui