This repository was archived by the owner on Jun 17, 2025. It is now read-only.
Fix thread ID widening now that types are correct #215
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
2 errors and 37 warnings
|
mismatched types:
scripty_audio_handler/src/connect.rs#L68
error[E0308]: mismatched types
--> scripty_audio_handler/src/connect.rs:68:23
|
68 | ) => (parent, Some(transcript_target_channel)),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ThreadId`, found `ChannelId`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `serenity::all::ChannelId` due to the type of the argument passed
--> scripty_audio_handler/src/connect.rs:68:18
|
68 | ) => (parent, Some(transcript_target_channel)),
| ^^^^^-------------------------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/3350c1eb3fd8fe1bee1ed4c76944d707bd256876/library/core/src/option.rs:597:5
|
|
Clippy
Clippy had exited with the 101 exit code
|
|
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/
|
|
unused variable: `auto_detect_lang`:
scripty_audio_handler/src/events/voice_tick.rs#L151
warning: unused variable: `auto_detect_lang`
--> scripty_audio_handler/src/events/voice_tick.rs:151:3
|
151 | auto_detect_lang,
| ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _`
|
= note: `#[warn(unused_variables)]` on by default
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/process_audio.rs#L38
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/process_audio.rs:38:3
|
38 | panic!("Invalid channel count: {}", channel_count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
38 - panic!("Invalid channel count: {}", channel_count)
38 + panic!("Invalid channel count: {channel_count}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L228
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:228:5
|
228 | write!(f, "timed out waiting for result: session ID {}", session_id)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
228 - write!(f, "timed out waiting for result: session ID {}", session_id)
228 + write!(f, "timed out waiting for result: session ID {session_id}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L216
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:216:5
|
216 | write!(f, "invalid payload: expected {:?}, got {:?}", expected, got)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
216 - write!(f, "invalid payload: expected {:?}, got {:?}", expected, got)
216 + write!(f, "invalid payload: expected {expected:?}, got {got:?}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L210
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:210:5
|
210 | write!(f, "invalid magic bytes: {:?}", bytes)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
210 - write!(f, "invalid magic bytes: {:?}", bytes)
210 + write!(f, "invalid magic bytes: {bytes:?}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L207
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:207:5
|
207 | write!(f, "failed to encode MsgPack: {}", e)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
207 - write!(f, "failed to encode MsgPack: {}", e)
207 + write!(f, "failed to encode MsgPack: {e}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L204
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:204:5
|
204 | write!(f, "failed to decode MsgPack: {}", e)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
204 - write!(f, "failed to decode MsgPack: {}", e)
204 + write!(f, "failed to decode MsgPack: {e}")
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L197
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:197:5
|
197 | / write!(
198 | | f,
199 | | "No available STTS servers after {} tries",
200 | | NUM_STT_SERVICE_TRIES
201 | | )
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L195
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:195:35
|
195 | ModelError::SttsServer(err) => write!(f, "STTS server error: {}", err),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
195 - ModelError::SttsServer(err) => write!(f, "STTS server error: {}", err),
195 + ModelError::SttsServer(err) => write!(f, "STTS server error: {err}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/models.rs#L194
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/models.rs:194:27
|
194 | ModelError::Io(err) => write!(f, "IO error: {}", err),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
194 - ModelError::Io(err) => write!(f, "IO error: {}", err),
194 + ModelError::Io(err) => write!(f, "IO error: {err}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/ffprobe.rs#L64
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/ffprobe.rs:64:28
|
64 | Self::ExitCode(code) => write!(f, "exit code: {}", code),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
64 - Self::ExitCode(code) => write!(f, "exit code: {}", code),
64 + Self::ExitCode(code) => write!(f, "exit code: {code}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/ffprobe.rs#L63
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/ffprobe.rs:63:19
|
63 | Self::Io(e) => write!(f, "io error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
63 - Self::Io(e) => write!(f, "io error: {}", e),
63 + Self::Io(e) => write!(f, "io error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/ffprobe.rs#L62
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/ffprobe.rs:62:21
|
62 | Self::Json(e) => write!(f, "json error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
62 - Self::Json(e) => write!(f, "json error: {}", e),
62 + Self::Json(e) => write!(f, "json error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_stt/src/ffprobe.rs#L61
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/ffprobe.rs:61:28
|
61 | Self::InvalidUtf8(e) => write!(f, "invalid utf8: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
61 - Self::InvalidUtf8(e) => write!(f, "invalid utf8: {}", e),
61 + Self::InvalidUtf8(e) => write!(f, "invalid utf8: {e}"),
|
|
|
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable:
scripty_stt/src/lib.rs#L1
warning: the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
--> scripty_stt/src/lib.rs:1:12
|
1 | #![feature(slice_as_chunks)]
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
|
|
variables can be used directly in the `format!` string:
scripty_botlists/src/common.rs#L47
warning: variables can be used directly in the `format!` string
--> scripty_botlists/src/common.rs:47:28
|
47 | Error::StatusCode(e) => write!(f, "Status code error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
47 - Error::StatusCode(e) => write!(f, "Status code error: {}", e),
47 + Error::StatusCode(e) => write!(f, "Status code error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_botlists/src/common.rs#L46
warning: variables can be used directly in the `format!` string
--> scripty_botlists/src/common.rs:46:22
|
46 | Error::Json(e) => write!(f, "JSON error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
46 - Error::Json(e) => write!(f, "JSON error: {}", e),
46 + Error::Json(e) => write!(f, "JSON error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_botlists/src/common.rs#L45
warning: variables can be used directly in the `format!` string
--> scripty_botlists/src/common.rs:45:25
|
45 | Error::Reqwest(e) => write!(f, "Reqwest error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
45 - Error::Reqwest(e) => write!(f, "Reqwest error: {}", e),
45 + Error::Reqwest(e) => write!(f, "Reqwest error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/http_client.rs#L36
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/http_client.rs:36:13
|
36 | let url = format!("{}/guild/{}/permissions", BASE_API_URL, guild_id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
36 - let url = format!("{}/guild/{}/permissions", BASE_API_URL, guild_id);
36 + let url = format!("{BASE_API_URL}/guild/{guild_id}/permissions");
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/http_client.rs#L24
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/http_client.rs:24:13
|
24 | let url = format!("{}/guild/{}/virtual_message", BASE_API_URL, guild_id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
24 - let url = format!("{}/guild/{}/virtual_message", BASE_API_URL, guild_id);
24 + let url = format!("{BASE_API_URL}/guild/{guild_id}/virtual_message");
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/error.rs#L62
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/error.rs:62:27
|
62 | Self::BadInteger(e) => write!(f, "Invalid integer received: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
62 - Self::BadInteger(e) => write!(f, "Invalid integer received: {}", e),
62 + Self::BadInteger(e) => write!(f, "Invalid integer received: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/error.rs#L61
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/error.rs:61:38
|
61 | Self::Unknown { status, body } => write!(f, "Unknown: {} {}", status, body),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
61 - Self::Unknown { status, body } => write!(f, "Unknown: {} {}", status, body),
61 + Self::Unknown { status, body } => write!(f, "Unknown: {status} {body}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/error.rs#L59
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/error.rs:59:31
|
59 | Self::Unauthorized(msg) => write!(f, "Unauthorized: {}", msg),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
59 - Self::Unauthorized(msg) => write!(f, "Unauthorized: {}", msg),
59 + Self::Unauthorized(msg) => write!(f, "Unauthorized: {msg}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/error.rs#L58
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/error.rs:58:28
|
58 | Self::Forbidden(msg) => write!(f, "Forbidden: {}", msg),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
58 - Self::Forbidden(msg) => write!(f, "Forbidden: {}", msg),
58 + Self::Forbidden(msg) => write!(f, "Forbidden: {msg}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_integrations/src/kiai/error.rs#L56
warning: variables can be used directly in the `format!` string
--> scripty_integrations/src/kiai/error.rs:56:26
|
56 | Self::Reqwest(err) => write!(f, "{}", err),
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
56 - Self::Reqwest(err) => write!(f, "{}", err),
56 + Self::Reqwest(err) => write!(f, "{err}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_premium/src/lib.rs#L83
warning: variables can be used directly in the `format!` string
--> scripty_premium/src/lib.rs:83:9
|
83 | _ => panic!("Invalid tier: {}", i),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
83 - _ => panic!("Invalid tier: {}", i),
83 + _ => panic!("Invalid tier: {i}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_redis/src/transaction.rs#L17
warning: variables can be used directly in the `format!` string
--> scripty_redis/src/transaction.rs:17:34
|
17 | TransactionError::Redis(e) => write!(f, "redis error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
17 - TransactionError::Redis(e) => write!(f, "redis error: {}", e),
17 + TransactionError::Redis(e) => write!(f, "redis error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_redis/src/transaction.rs#L16
warning: variables can be used directly in the `format!` string
--> scripty_redis/src/transaction.rs:16:37
|
16 | TransactionError::Deadpool(e) => write!(f, "deadpool error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
16 - TransactionError::Deadpool(e) => write!(f, "deadpool error: {}", e),
16 + TransactionError::Deadpool(e) => write!(f, "deadpool error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_utils/src/hex_vec.rs#L7
warning: variables can be used directly in the `format!` string
--> scripty_utils/src/hex_vec.rs:7:6
|
7 | if write!(hex, "{:02x}", byte).is_err() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
7 - if write!(hex, "{:02x}", byte).is_err() {
7 + if write!(hex, "{byte:02x}").is_err() {
|
|
|
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/
|