rename scripty_audio to scripty_stt #10
Annotations
18 warnings
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 variable: `guild_id`:
scripty_commands/src/cmds/admin/shutdown.rs#L9
warning: unused variable: `guild_id`
--> scripty_commands/src/cmds/admin/shutdown.rs:9:7
|
9 | for (guild_id, call) in songbird.iter() {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_guild_id`
|
unused variable: `msg`:
scripty_commands/src/cmds/admin/shutdown.rs#L5
warning: unused variable: `msg`
--> scripty_commands/src/cmds/admin/shutdown.rs:5:6
|
5 | let msg = ctx.say("shutting down").await?;
| ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
|
= note: `#[warn(unused_variables)]` on by default
|
accessing first element with `message
.attachments.get(0)`:
scripty_bot_utils/src/dm_support.rs#L125
warning: accessing first element with `message
.attachments.get(0)`
--> scripty_bot_utils/src/dm_support.rs:125:22
|
125 | let attachment = message
| __________________________________^
126 | | .attachments
127 | | .get(0)
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
125 ~ let attachment = message
126 ~ .attachments.first()
|
|
this function has too many arguments (10/7):
scripty_audio_handler/src/events/voice_tick.rs#L30
warning: this function has too many arguments (10/7)
--> scripty_audio_handler/src/events/voice_tick.rs:30:1
|
30 | / pub async fn voice_tick(
31 | | voice_data: VoiceTick,
32 | | ssrc_state: Arc<SsrcMaps>,
33 | | guild_id: GuildId,
... |
40 | | automod_server_cfg: Arc<AutomodServerConfig>,
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#L68
warning: this function has too many arguments (8/7)
--> scripty_audio_handler/src/audio_handler.rs:68:2
|
68 | / pub async fn new(
69 | | guild_id: GuildId,
70 | | webhook: Webhook,
71 | | context: Context,
... |
76 | | automod_server_cfg: AutomodServerConfig,
77 | | ) -> 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
|
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
|
accessing first element with `inputs.get(0)`:
scripty_utils/src/embed_pagination.rs#L105
warning: accessing first element with `inputs.get(0)`
--> scripty_utils/src/embed_pagination.rs:105:30
|
105 | if let Some(Ok(page)) = inputs.get(0).map(|x| usize::from_str(x)) {
| ^^^^^^^^^^^^^ help: try: `inputs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` 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/
|