Skip to content

insert default on join #96

insert default on join

insert default on join #96

GitHub Actions / Clippy Output succeeded Apr 17, 2024 in 0s

Clippy Output

6 warnings

Details

Results

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

Versions

  • rustc 1.79.0-nightly (1cec373f6 2024-04-16)
  • cargo 1.79.0-nightly (48eca1b16 2024-04-12)
  • clippy 0.1.79 (1cec373 2024-04-16)

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused variable: `auto_detect_lang`

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

Check warning on line 15 in scripty_stt/src/decode_ogg_opus.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

clamp-like pattern without using clamp function

warning: clamp-like pattern without using clamp function
  --> scripty_stt/src/decode_ogg_opus.rs:15:16
   |
15 |         let sample = sample.max(-1.0).min(1.0);
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `sample.clamp(-1.0, 1.0)`
   |
   = note: clamp will panic if max < min, min.is_nan(), or max.is_nan()
   = note: clamp returns NaN if the input is NaN
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
   = note: `#[warn(clippy::manual_clamp)]` on by default

Check warning on line 9 in scripty_botlists/src/lists/disforge_com/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `message` is never read

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

Check warning on line 11 in scripty_botlists/src/lists/discordextremelist_xyz/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `status` is never read

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

Check warning on line 10 in scripty_botlists/src/lists/discord_bots_gg/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

fields `code` and `message` are never read

warning: fields `code` and `message` are never read
  --> scripty_botlists/src/lists/discord_bots_gg/models.rs:10:6
   |
9  | pub struct PostStatsResponse {
   |            ----------------- fields in this struct
10 |     pub code:    u16,
   |         ^^^^
11 |     pub message: String,
   |         ^^^^^^^
   |
   = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = 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