Skip to content

fix(deps): update rust crate thiserror to v2 #43

fix(deps): update rust crate thiserror to v2

fix(deps): update rust crate thiserror to v2 #43

GitHub Actions / clippy succeeded Nov 7, 2024 in 0s

clippy

6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 6
Note 0
Help 0

Versions

  • rustc 1.84.0-nightly (854980293 2024-11-06)
  • cargo 1.84.0-nightly (031049782 2024-11-01)
  • clippy 0.1.84 (8549802939 2024-11-06)

Annotations

Check warning on line 37 in src/state/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `impl` can be derived

warning: this `impl` can be derived
  --> src/state/mod.rs:33:1
   |
33 | / impl Default for GameState {
34 | |     fn default() -> Self {
35 | |         GameState::None
36 | |     }
37 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
   = note: `#[warn(clippy::derivable_impls)]` on by default
   = help: remove the manual implementation...
help: ...and instead derive it...
   |
4  + #[derive(Default)]
5  | pub enum GameState {
   |
help: ...and mark the default variant
   |
5  ~     #[default]
6  ~     None,
   |

Check warning on line 25 in src/error/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

warning: the following explicit lifetimes could be elided: 'a
  --> src/error/mod.rs:25:22
   |
25 | async fn reply_error<'a>(ctx: Context<'a>, error: impl Display) -> anyhow::Result<()> {
   |                      ^^               ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default

Check warning on line 18 in src/command/start.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/command/start.rs:18:30
   |
18 |     GameState::transition_to(&game_state, GameState::Discussion)?;
   |                              ^^^^^^^^^^^ help: change this to: `game_state`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 13 in src/command/hold_fetish.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/command/hold_fetish.rs:13:30
   |
13 |     GameState::transition_to(&game_state, GameState::Preparing)?;
   |                              ^^^^^^^^^^^ help: change this to: `game_state`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 8 in src/state/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variants `Voting` and `Evening` are never constructed

warning: variants `Voting` and `Evening` are never constructed
 --> src/state/mod.rs:8:5
  |
4 | pub enum GameState {
  |          --------- variants in this enum
...
8 |     Voting,
  |     ^^^^^^
9 |     Evening,
  |     ^^^^^^^
  |
  = note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

Check warning on line 8 in src/model/attender.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

fields `name` and `is_alive` are never read

warning: fields `name` and `is_alive` are never read
  --> src/model/attender.rs:8:9
   |
6  | pub struct Attender {
   |            -------- fields in this struct
7  |     pub id: serenity::UserId,
8  |     pub name: String,
   |         ^^^^
9  |     pub fetish: String,
10 |     pub is_alive: bool,
   |         ^^^^^^^^
   |
   = note: `Attender` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default