Add shutdown function #78
Clippy Output
6 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 6 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0-nightly (bf3c6c5be 2024-02-01)
- cargo 1.77.0-nightly (7bb7b5395 2024-01-20)
- clippy 0.1.77 (bf3c6c5 2024-02-01)
Annotations
Check warning on line 46 in scripty_audio_handler/src/events/voice_tick.rs
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
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 486 in scripty_audio_handler/src/events/voice_tick.rs
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
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
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