Merge remote-tracking branch 'origin/master' #92
Clippy Output
9 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 9 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0-nightly (0d8b3346a 2024-04-14)
- cargo 1.79.0-nightly (48eca1b16 2024-04-12)
- clippy 0.1.79 (0d8b334 2024-04-14)
Annotations
Check warning on line 10 in scripty_webserver/src/auth.rs
github-actions / Clippy Output
field `token` is never read
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
Check warning on line 27 in scripty_audio_handler/src/events/driver_disconnect.rs
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
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 148 in scripty_audio_handler/src/events/voice_tick.rs
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
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
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
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
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
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