Skip to content

Fix more runtime panics

Sign in for the full log view
GitHub Actions / Clippy Output succeeded Feb 2, 2024 in 0s

Clippy Output

10 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 10
Note 0
Help 0

Versions

  • rustc 1.77.0-nightly (11f32b73e 2024-01-31)
  • cargo 1.77.0-nightly (7bb7b5395 2024-01-20)
  • clippy 0.1.77 (11f32b7 2024-01-31)

Annotations

Check warning on line 9 in scripty_commands/src/cmds/admin/shutdown.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused variable: `guild_id`

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`

Check warning on line 5 in scripty_commands/src/cmds/admin/shutdown.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused variable: `msg`

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

Check warning on line 27 in scripty_bot_utils/src/background_tasks/tasks/prometheus_latency_update.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> scripty_bot_utils/src/background_tasks/tasks/prometheus_latency_update.rs:27:43
   |
27 |             scripty_utils::latency::get_ws_latency(&shard_manager, self.1.shard_id.0)
   |                                                    ^^^^^^^^^^^^^^ help: change this to: `shard_manager`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 1 in scripty_bot_utils/src/background_tasks/tasks/status_update.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused import: `sync::Arc`

warning: unused import: `sync::Arc`
 --> scripty_bot_utils/src/background_tasks/tasks/status_update.rs:1:11
  |
1 | use std::{sync::Arc, time::Duration};
  |           ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check warning on line 46 in scripty_audio_handler/src/events/voice_tick.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function has too many arguments (15/7)

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

Check warning on line 27 in scripty_audio_handler/src/events/driver_disconnect.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function has too many arguments (9/7)

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

Check warning on line 85 in scripty_audio_handler/src/audio_handler.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function has too many arguments (9/7)

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

Check warning on line 486 in scripty_audio_handler/src/events/voice_tick.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

function `handle_error` is never used

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> {
    |    ^^^^^^^^^^^^

Check warning on line 105 in scripty_audio_handler/src/events/voice_tick.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `auto_detect_lang` is never read

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

Check warning on line 82 in scripty_automod/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function has too many arguments (8/7)

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