Add missing crate #58
Annotations
1 error and 20 warnings
Clippy
Clippy had exited with the 101 exit code
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, 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/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
unused import: `futures::StreamExt`:
scripty_bot_utils/src/background_tasks/tasks/bot_vote_reminder.rs#L7
warning: unused import: `futures::StreamExt`
--> scripty_bot_utils/src/background_tasks/tasks/bot_vote_reminder.rs:7:2
|
7 | futures::StreamExt,
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
this `let...else` may be rewritten with the `?` operator:
scripty_audio_handler/src/lib.rs#L33
warning: this `let...else` may be rewritten with the `?` operator
--> scripty_audio_handler/src/lib.rs:33:2
|
33 | / let Some(call) = songbird::get(ctx)
34 | | .await
35 | | .expect("failed to get songbird object")
36 | | .get(guild_id)
37 | | else {
38 | | return None;
39 | | };
| |______^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
= note: `#[warn(clippy::question_mark)]` on by default
help: replace it with
|
33 ~ let call = songbird::get(ctx)
34 ~ .await
35 ~ .expect("failed to get songbird object")
36 ~ .get(guild_id)?;
|
|
this function has too many arguments (12/7):
scripty_audio_handler/src/events/voice_tick.rs#L28
warning: this function has too many arguments (12/7)
--> scripty_audio_handler/src/events/voice_tick.rs:28:1
|
28 | / pub async fn voice_tick(
29 | | voice_data: VoiceTick,
30 | | ssrc_state: Arc<SsrcMaps>,
31 | | guild_id: GuildId,
... |
40 | | translate: Arc<AtomicBool>,
41 | | ) {
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (9/7):
scripty_audio_handler/src/events/driver_disconnect.rs#L17
warning: this function has too many arguments (9/7)
--> scripty_audio_handler/src/events/driver_disconnect.rs:17:1
|
17 | / pub async fn driver_disconnect(
18 | | guild_id: GuildId,
19 | | reason: Option<DisconnectReason>,
20 | | ctx: Context,
... |
26 | | seen_users: SeenUsers,
27 | | ) {
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
scripty_audio_handler/src/audio_handler.rs#L72
warning: this function has too many arguments (8/7)
--> scripty_audio_handler/src/audio_handler.rs:72:2
|
72 | / pub async fn new(
73 | | guild_id: GuildId,
74 | | webhook: Webhook,
75 | | context: Context,
... |
80 | | automod_server_cfg: AutomodServerConfig,
81 | | ) -> Result<Self, sqlx::Error> {
| |__________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
function `handle_error` is never used:
scripty_audio_handler/src/events/voice_tick.rs#L427
warning: function `handle_error` is never used
--> scripty_audio_handler/src/events/voice_tick.rs:427:4
|
427 | fn handle_error(error: ModelError, ssrc: u32) -> ExecuteWebhook {
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused variable: `auto_detect_lang`:
scripty_audio_handler/src/events/voice_tick.rs#L111
warning: unused variable: `auto_detect_lang`
--> scripty_audio_handler/src/events/voice_tick.rs:111:3
|
111 | auto_detect_lang,
| ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _`
|
= note: `#[warn(unused_variables)]` on by default
|
this function has too many arguments (8/7):
scripty_automod/src/types.rs#L73
warning: this function has too many arguments (8/7)
--> scripty_automod/src/types.rs:73:2
|
73 | / pub fn new(
74 | | guild_id: u64,
75 | | internal_id: i32,
76 | | enabled: bool,
... |
81 | | auto_join_voice: bool,
82 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`:
scripty_data_storage/src/cache/voice.rs#L71
warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
--> scripty_data_storage/src/cache/voice.rs:71:52
|
71 | match scripty_redis::run_transaction("GET", |con| {
| _______________________________________________________^
72 | | con.arg(format!(
73 | | "user:{{{}}}:store_audio",
74 | | hex::encode(user_id.clone())
75 | | ));
76 | | })
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
|
in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`:
scripty_data_storage/src/cache/text.rs#L71
warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
--> scripty_data_storage/src/cache/text.rs:71:52
|
71 | match scripty_redis::run_transaction("GET", |con| {
| _______________________________________________________^
72 | | con.arg(format!(
73 | | "user:{{{}}}:store_msgs",
74 | | hex::encode(user_id.clone())
75 | | ));
76 | | })
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
= note: `#[warn(clippy::blocks_in_conditions)]` on by default
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, 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/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|