Skip to content

chore: anyhow -> color_eyre #21

chore: anyhow -> color_eyre

chore: anyhow -> color_eyre #21

Triggered via push July 21, 2023 14:06
Status Failure
Total duration 2m 27s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

clippy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 5 warnings
the trait bound `ratatui::text::Text<'_>: std::convert::From<ratatui::text::text::Text<'_>>` is not satisfied: src/tui/views/main.rs#L90
error[E0277]: the trait bound `ratatui::text::Text<'_>: std::convert::From<ratatui::text::text::Text<'_>>` is not satisfied --> src/tui/views/main.rs:90:21 | 89 | ListItem::new( | ------------- required by a bound introduced by this call 90 | / log.to_string() 91 | | .into_text() 92 | | .wrap_err("log message should be convertable to text") 93 | | .unwrap(), | |_________________________________^ the trait `std::convert::From<ratatui::text::text::Text<'_>>` is not implemented for `ratatui::text::Text<'_>` | = help: the following other types implement trait `std::convert::From<T>`: <ratatui::text::Text<'a> as std::convert::From<&'a ratatui::text::Masked<'_>>> <ratatui::text::Text<'a> as std::convert::From<&'a str>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Line<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Masked<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Span<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Spans<'a>>> <ratatui::text::Text<'a> as std::convert::From<std::borrow::Cow<'a, str>>> <ratatui::text::Text<'a> as std::convert::From<std::string::String>> and 2 others = note: required for `ratatui::text::text::Text<'_>` to implement `std::convert::Into<ratatui::text::Text<'_>>` note: required by a bound in `ratatui::widgets::ListItem::<'a>::new` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.21.0/src/widgets/list.rs:56:12 | 54 | pub fn new<T>(content: T) -> ListItem<'a> | --- required by a bound in this associated function 55 | where 56 | T: Into<Text<'a>>, | ^^^^^^^^^^^^^^ required by this bound in `ListItem::<'a>::new`
the trait bound `ratatui::text::Text<'_>: std::convert::From<ratatui::text::text::Text<'_>>` is not satisfied: src/tui/views/log.rs#L95
error[E0277]: the trait bound `ratatui::text::Text<'_>: std::convert::From<ratatui::text::text::Text<'_>>` is not satisfied --> src/tui/views/log.rs:95:30 | 95 | let log = Paragraph::new(entry.to_string().into_text()?).block( | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<ratatui::text::text::Text<'_>>` is not implemented for `ratatui::text::Text<'_>` | | | required by a bound introduced by this call | = help: the following other types implement trait `std::convert::From<T>`: <ratatui::text::Text<'a> as std::convert::From<&'a ratatui::text::Masked<'_>>> <ratatui::text::Text<'a> as std::convert::From<&'a str>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Line<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Masked<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Span<'a>>> <ratatui::text::Text<'a> as std::convert::From<ratatui::text::Spans<'a>>> <ratatui::text::Text<'a> as std::convert::From<std::borrow::Cow<'a, str>>> <ratatui::text::Text<'a> as std::convert::From<std::string::String>> and 2 others = note: required for `ratatui::text::text::Text<'_>` to implement `std::convert::Into<ratatui::text::Text<'_>>` note: required by a bound in `ratatui::widgets::Paragraph::<'a>::new` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.21.0/src/widgets/paragraph.rs:97:12 | 95 | pub fn new<T>(text: T) -> Paragraph<'a> | --- required by a bound in this associated function 96 | where 97 | T: Into<Text<'a>>, | ^^^^^^^^^^^^^^ required by this bound in `Paragraph::<'a>::new`
clippy
Clippy had exited with the 101 exit code
unneeded unit expression: src/main.rs#L260
warning: unneeded unit expression --> src/main.rs:260:21 | 260 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
struct update has no effect, all the fields in the struct have already been specified: src/db/user.rs#L25
warning: struct update has no effect, all the fields in the struct have already been specified --> src/db/user.rs:25:11 | 25 | ..Default::default() | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
struct update has no effect, all the fields in the struct have already been specified: src/db/member.rs#L49
warning: struct update has no effect, all the fields in the struct have already been specified --> src/db/member.rs:49:15 | 49 | ..Default::default() | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
struct update has no effect, all the fields in the struct have already been specified: src/db/autorole.rs#L39
warning: struct update has no effect, all the fields in the struct have already been specified --> src/db/autorole.rs:39:15 | 39 | ..Default::default() | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update = note: `#[warn(clippy::needless_update)]` on by default
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/