unleash the brodsky #298
Annotations
2 errors and 9 warnings
the trait bound `discord::handler::Handler: serenity::prelude::EventHandler` is not satisfied:
bin/bot/src/discord/mod.rs#L15
error[E0277]: the trait bound `discord::handler::Handler: serenity::prelude::EventHandler` is not satisfied
--> bin/bot/src/discord/mod.rs:15:24
|
15 | .event_handler(handler::Handler {
| __________-------------_^
| | |
| | required by a bound introduced by this call
16 | | brain: handler::Brain::new(),
17 | | subcon_counter: AtomicU32::new(0),
18 | | })
| |_________^ the trait `serenity::prelude::EventHandler` is not implemented for `discord::handler::Handler`
|
note: required by a bound in `serenity::client::ClientBuilder::event_handler`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serenity-0.12.1/src/client/mod.rs:271:29
|
271 | pub fn event_handler<H: EventHandler + 'static>(mut self, event_handler: H) -> Self {
| ^^^^^^^^^^^^ required by this bound in `ClientBuilder::event_handler`
|
coverage
Process completed with exit code 1.
|
unused imports: `menu`, `self`:
bin/bot/src/discord/handler/mod.rs#L18
warning: unused imports: `menu`, `self`
--> bin/bot/src/discord/handler/mod.rs:18:5
|
18 | menu,
| ^^^^
19 | slash::{self, schedule::post_mission},
| ^^^^
|
unused imports: `MENU_AAR_IDS`, `MENU_AAR_PAY`, `bot::Bot`:
bin/bot/src/discord/handler/mod.rs#L13
warning: unused imports: `MENU_AAR_IDS`, `MENU_AAR_PAY`, `bot::Bot`
--> bin/bot/src/discord/handler/mod.rs:13:5
|
13 | bot::Bot,
| ^^^^^^^^
14 | discord::menu::missions::{MENU_AAR_IDS, MENU_AAR_PAY},
| ^^^^^^^^^^^^ ^^^^^^^^^^^^
|
unused import: `uuid::Uuid`:
bin/bot/src/discord/handler/mod.rs#L10
warning: unused import: `uuid::Uuid`
--> bin/bot/src/discord/handler/mod.rs:10:5
|
10 | use uuid::Uuid;
| ^^^^^^^^^^
|
unused import: `events_request_5`:
bin/bot/src/discord/handler/mod.rs#L9
warning: unused import: `events_request_5`
--> bin/bot/src/discord/handler/mod.rs:9:37
|
9 | use synixe_proc::{events_request_2, events_request_5};
| ^^^^^^^^^^^^^^^^
|
unused imports: `BOT`, `GAME_LOG`, `LEADERSHIP`, `LOBBY`, `OFFTOPIC`, `ONTOPIC`:
bin/bot/src/discord/handler/mod.rs#L7
warning: unused imports: `BOT`, `GAME_LOG`, `LEADERSHIP`, `LOBBY`, `OFFTOPIC`, `ONTOPIC`
--> bin/bot/src/discord/handler/mod.rs:7:5
|
7 | BOT, GAME_LOG, LEADERSHIP, LOBBY, LOOKING_TO_PLAY, OFFTOPIC, ONTOPIC,
| ^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^
|
unused imports: `discord::publish::Publish`, `publish`:
bin/bot/src/discord/handler/mod.rs#L5
warning: unused imports: `discord::publish::Publish`, `publish`
--> bin/bot/src/discord/handler/mod.rs:5:21
|
5 | use synixe_events::{discord::publish::Publish, missions::db::Response, publish};
| ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^
|
unused import: `rand::Rng`:
bin/bot/src/discord/handler/mod.rs#L3
warning: unused import: `rand::Rng`
--> bin/bot/src/discord/handler/mod.rs:3:5
|
3 | use rand::Rng;
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|