-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I tried to install this via cargo install but ran into an error:
error[E0277]: the trait bound `StatefulImage: StatefulWidget` is not satisfied
--> /Users/danny/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bbc-news-cli-1.0.3/src/ui.rs:388:34
|
388 | f.render_stateful_widget(image_widget, image_area, &mut dyn_img);
| ---------------------- ^^^^^^^^^^^^ the trait `StatefulWidget` is not implemented for `StatefulImage`
| |
| required by a bound introduced by this call
|
= note: `StatefulImage` implements similarly named trait `ratatui_core::widgets::stateful_widget::StatefulWidget`, but not `StatefulWidget`
= help: the following other types implement trait `StatefulWidget`:
&List<'_>
&ratatui::widgets::Table<'_>
List<'_>
Scrollbar<'a>
ratatui::widgets::Table<'_>
note: required by a bound in `ratatui::Frame::<'_>::render_stateful_widget`
--> /Users/danny/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.29.0/src/terminal/frame.rs:154:12
|
152 | pub fn render_stateful_widget<W>(&mut self, widget: W, area: Rect, state: &mut W::State)
| ---------------------- required by a bound in this associated function
153 | where
154 | W: StatefulWidget,
| ^^^^^^^^^^^^^^ required by this bound in `Frame::<'_>::render_stateful_widget`
For more information about this error, try `rustc --explain E0277`.
I'm not sure if this is a mismatch between the ratatui version and ratatui-image
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels