Skip to content

fix panic on start

fix panic on start #73

Triggered via push February 2, 2024 02:49
Status Failure
Total duration 2m 34s
Artifacts

linters.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 18 warnings
mismatched types: scripty_bot_utils/src/background_tasks/tasks/status_update.rs#L24
error[E0308]: mismatched types --> scripty_bot_utils/src/background_tasks/tasks/status_update.rs:24:19 | 24 | shard_manager: CLIENT_DATA | ____________________________^ 25 | | .get() 26 | | .expect("client data not initialized") 27 | | .shard_manager 28 | | .clone(), | |________________________^ expected `Arc<ShardManager>`, found `OnceLock<Arc<ShardManager>>` | = note: expected struct `std::sync::Arc<_>` found struct `std::sync::OnceLock<std::sync::Arc<_>>`
no field `runners` on type `std::sync::OnceLock<std::sync::Arc<serenity::gateway::ShardManager>>`: scripty_bot_utils/src/extern_utils.rs#L181
error[E0609]: no field `runners` on type `std::sync::OnceLock<std::sync::Arc<serenity::gateway::ShardManager>>` --> scripty_bot_utils/src/extern_utils.rs:181:35 | 181 | let runners = data.shard_manager.runners.lock().await; | ^^^^^^^ unknown field
no field `runners` on type `std::sync::OnceLock<std::sync::Arc<serenity::gateway::ShardManager>>`: scripty_bot_utils/src/extern_utils.rs#L147
error[E0609]: no field `runners` on type `std::sync::OnceLock<std::sync::Arc<serenity::gateway::ShardManager>>` --> scripty_bot_utils/src/extern_utils.rs:147:40 | 147 | let shard_count = data.shard_manager.runners.lock().await.len() as u64; | ^^^^^^^ unknown field
Clippy
Clippy had exited with the 101 exit code
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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/
this function has too many arguments (15/7): scripty_audio_handler/src/events/voice_tick.rs#L30
warning: this function has too many arguments (15/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, ... | 45 | | kiai_client: KiaiApiClient, 46 | | ) { | |_^ | = 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 (9/7): scripty_audio_handler/src/audio_handler.rs#L75
warning: this function has too many arguments (9/7) --> scripty_audio_handler/src/audio_handler.rs:75:2 | 75 | / pub async fn new( 76 | | guild_id: GuildId, 77 | | webhook: Webhook, 78 | | context: Context, ... | 84 | | kiai_client: KiaiApiClient, 85 | | ) -> 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#L486
warning: function `handle_error` is never used --> scripty_audio_handler/src/events/voice_tick.rs:486:4 | 486 | fn handle_error<'a>(error: ModelError, ssrc: u32) -> ExecuteWebhook<'a> { | ^^^^^^^^^^^^
field `auto_detect_lang` is never read: scripty_audio_handler/src/events/voice_tick.rs#L105
warning: field `auto_detect_lang` is never read --> scripty_audio_handler/src/events/voice_tick.rs:105:2 | 95 | struct SilentSpeakersContext { | --------------------- field in this struct ... 105 | auto_detect_lang: Arc<AtomicBool>, | ^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` 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
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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/