Skip to content

Translated using Weblate (Tamil) #194

Translated using Weblate (Tamil)

Translated using Weblate (Tamil) #194

Triggered via push March 3, 2025 15:04
Status Success
Total duration 2m 36s
Artifacts

linters.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

25 warnings
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: `borrow::Cow`: scripty_bot/src/framework_opts.rs#L1
warning: unused import: `borrow::Cow` --> scripty_bot/src/framework_opts.rs:1:11 | 1 | use std::{borrow::Cow, sync::Arc, time::Duration}; | ^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
field `token` is never read: scripty_webserver/src/auth.rs#L10
warning: field `token` is never read --> scripty_webserver/src/auth.rs:10:6 | 8 | pub struct Authentication { | -------------- field in this struct 9 | /// The token used for auth. 10 | pub token: String, | ^^^^^ | = note: `#[warn(dead_code)]` on by default
called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator: scripty_bot_utils/src/generic_audio_message.rs#L116
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator --> scripty_bot_utils/src/generic_audio_message.rs:116:22 | 116 | if let Some(ext) = attachment.filename.split('.').last() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------ | | | help: try: `next_back()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last = note: `#[warn(clippy::double_ended_iterator_last)]` on by default
this function depends on never type fallback being `()`: scripty_bot_utils/src/prefix_handling.rs#L13
warning: this function depends on never type fallback being `()` --> scripty_bot_utils/src/prefix_handling.rs:13:1 | 13 | / async fn _dynamic_prefix( 14 | | ctx: PartialContext<'_, Data, crate::Error>, 15 | | ) -> Result<Option<Cow<'static, str>>, crate::Error> { | |____________________________________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_bot_utils/src/prefix_handling.rs:49:2 | 49 | / scripty_redis::run_transaction("SETEX", |cmd| { 50 | | cmd.arg(format!("prefix_{{{}}}", guild_id.get())) 51 | | .arg(60 * 15) 52 | | .arg(&maybe_prefix); 53 | | }) | |______^ help: use `()` annotations to avoid fallback changes | 49 | scripty_redis::run_transaction::<()>("SETEX", |cmd| { | ++++++
unused variable: `message`: scripty_bot_utils/src/error/handler.rs#L63
warning: unused variable: `message` --> scripty_bot_utils/src/error/handler.rs:63:39 | 63 | error: DiscordJsonError { code, message, .. }, | ^^^^^^^ help: try ignoring the field: `message: _`
unused variable: `code`: scripty_bot_utils/src/error/handler.rs#L63
warning: unused variable: `code` --> scripty_bot_utils/src/error/handler.rs:63:33 | 63 | error: DiscordJsonError { code, message, .. }, | ^^^^ help: try ignoring the field: `code: _` | = note: `#[warn(unused_variables)]` on by default
this function depends on never type fallback being `()`: scripty_bot_utils/src/entity_block.rs#L168
warning: this function depends on never type fallback being `()` --> scripty_bot_utils/src/entity_block.rs:168:1 | 168 | pub async fn add_blocked_guild(guild_id: GuildId, reason: Option<String>) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_bot_utils/src/entity_block.rs:185:4 | 185 | .set( | ^^^ help: use `()` annotations to avoid fallback changes | 185 | .set::<_, _, ()>( | ++++++++++++
this function depends on never type fallback being `()`: scripty_bot_utils/src/entity_block.rs#L138
warning: this function depends on never type fallback being `()` --> scripty_bot_utils/src/entity_block.rs:138:1 | 138 | pub async fn add_blocked_user(user_id: UserId, reason: Option<String>) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_bot_utils/src/entity_block.rs:155:4 | 155 | .set( | ^^^ help: use `()` annotations to avoid fallback changes | 155 | .set::<_, _, ()>( | ++++++++++++
this function depends on never type fallback being `()`: scripty_bot_utils/src/entity_block.rs#L8
warning: this function depends on never type fallback being `()` --> scripty_bot_utils/src/entity_block.rs:8:1 | 8 | pub async fn init_blocked() -> Result<(), scripty_redis::redis::RedisError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_bot_utils/src/entity_block.rs:34:5 | 34 | .query_async(&mut redis_pool) | ^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default help: use `()` annotations to avoid fallback changes | 34 ~ .query_async::<_, ()>(&mut redis_pool) 35 | .await?; ... 54 | .ignore() 55 ~ .query_async::<_, ()>(&mut redis_pool) |
this function has too many arguments (10/7): scripty_audio_handler/src/events/driver_disconnect.rs#L17
warning: this function has too many arguments (10/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, ... | 27 | | ephemeral: bool, 28 | | ) { | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
this function has too many arguments (10/7): scripty_audio_handler/src/audio_handler.rs#L79
warning: this function has too many arguments (10/7) --> scripty_audio_handler/src/audio_handler.rs:79:2 | 79 | / pub async fn new( 80 | | guild_id: GuildId, 81 | | webhook: Webhook, 82 | | context: Context, ... | 89 | | ephemeral: bool, 90 | | ) -> Result<Self, 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
unused variable: `auto_detect_lang`: scripty_audio_handler/src/events/voice_tick.rs#L148
warning: unused variable: `auto_detect_lang` --> scripty_audio_handler/src/events/voice_tick.rs:148:3 | 148 | auto_detect_lang, | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _` | = note: `#[warn(unused_variables)]` on by default
this function depends on never type fallback being `()`: scripty_audio_handler/src/connect.rs#L29
warning: this function depends on never type fallback being `()` --> scripty_audio_handler/src/connect.rs:29:1 | 29 | / pub async fn connect_to_vc( 30 | | ctx: Context, 31 | | guild_id: GuildId, 32 | | transcript_target_channel: ChannelId, ... | 36 | | ephemeral: bool, 37 | | ) -> Result<(), Error> { | |______________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_audio_handler/src/connect.rs:210:2 | 210 | / scripty_redis::run_transaction("SET", |f| { 211 | | f.arg(format!("voice:{{{}}}:webhook_token", guild_id)) 212 | | .arg(webhook_token.expose_secret()) 213 | | .arg("EX") 214 | | .arg(leave_delta + 5); 215 | | }) | |______^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default help: use `()` annotations to avoid fallback changes | 210 ~ scripty_redis::run_transaction::<()>("SET", |f| { 211 | f.arg(format!("voice:{{{}}}:webhook_token", guild_id)) ... 216 | .await?; 217 ~ scripty_redis::run_transaction::<()>("SET", |f| { |
field `message` is never read: scripty_botlists/src/lists/disforge_com/models.rs#L9
warning: field `message` is never read --> scripty_botlists/src/lists/disforge_com/models.rs:9:6 | 7 | pub struct PostStatsResponse { | ----------------- field in this struct 8 | pub status: String, 9 | pub message: String, | ^^^^^^^ | = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
field `status` is never read: scripty_botlists/src/lists/discordextremelist_xyz/models.rs#L11
warning: field `status` is never read --> scripty_botlists/src/lists/discordextremelist_xyz/models.rs:11:6 | 9 | pub struct PostStatsResponse { | ----------------- field in this struct 10 | pub error: bool, 11 | pub status: u16, | ^^^^^^ | = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
function `init_voice_cache_async` is never used: scripty_data_storage/src/cache/voice.rs#L2
warning: function `init_voice_cache_async` is never used --> scripty_data_storage/src/cache/voice.rs:2:14 | 2 | pub async fn init_voice_cache_async() -> Result<(), scripty_redis::redis::RedisError> { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
this function depends on never type fallback being `()`: scripty_data_storage/src/cache/voice.rs#L2
warning: this function depends on never type fallback being `()` --> scripty_data_storage/src/cache/voice.rs:2:1 | 2 | pub async fn init_voice_cache_async() -> Result<(), scripty_redis::redis::RedisError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> = help: specify the types explicitly note: in edition 2024, the requirement `!: scripty_redis::redis::FromRedisValue` will fail --> scripty_data_storage/src/cache/voice.rs:19:4 | 19 | .query_async( | ^^^^^^^^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default help: use `()` annotations to avoid fallback changes | 19 | .query_async::<_, ()>( | +++++++++
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/