This repository was archived by the owner on Jun 17, 2025. It is now read-only.
Try mold run instead #6
Annotations
1 error and 133 warnings
|
Rust project - latest (aarch64-unknown-linux-gnu)
Process completed with exit code 101.
|
|
variables can be used directly in the `format!` string:
scripty_core/src/main.rs#L164
warning: variables can be used directly in the `format!` string
--> scripty_core/src/main.rs:164:2
|
164 | println!("reading cfg at {}", cfg_path);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
164 - println!("reading cfg at {}", cfg_path);
164 + println!("reading cfg at {cfg_path}");
|
|
|
variables can be used directly in the `format!` string:
scripty_core/src/main.rs#L92
warning: variables can be used directly in the `format!` string
--> scripty_core/src/main.rs:92:48
|
92 | .format(|out, message, _record| out.finish(format_args!("{}", message)))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
92 - .format(|out, message, _record| out.finish(format_args!("{}", message)))
92 + .format(|out, message, _record| out.finish(format_args!("{message}")))
|
|
|
this `if` statement can be collapsed:
scripty_commands/src/cmds/help.rs#L40
warning: this `if` statement can be collapsed
--> scripty_commands/src/cmds/help.rs:40:3
|
40 | / if let Some(context_menu_name) = &command.context_menu_name {
41 | | if context_menu_name.eq_ignore_ascii_case(command_name) {
42 | | return true;
43 | | }
44 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
40 ~ if let Some(context_menu_name) = &command.context_menu_name
41 ~ && context_menu_name.eq_ignore_ascii_case(command_name) {
42 | return true;
43 ~ }
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/debug.rs#L18
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/debug.rs:18:6
|
18 | format!("{:#?}", state),
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
18 - format!("{:#?}", state),
18 + format!("{state:#?}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/config/transcribe_voice_messages.rs#L32
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/config/transcribe_voice_messages.rs:32:11
|
32 | cmd.arg(format!("voice_msg_transcript_{}", guild_id));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
32 - cmd.arg(format!("voice_msg_transcript_{}", guild_id));
32 + cmd.arg(format!("voice_msg_transcript_{guild_id}"));
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/config/prefix.rs#L48
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/config/prefix.rs:48:9
|
48 | t.arg(format!("prefix_{{{}}}", guild_id));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
48 - t.arg(format!("prefix_{{{}}}", guild_id));
48 + t.arg(format!("prefix_{{{guild_id}}}"));
|
|
|
this `if` statement can be collapsed:
scripty_commands/src/cmds/config/prefix.rs#L26
warning: this `if` statement can be collapsed
--> scripty_commands/src/cmds/config/prefix.rs:26:2
|
26 | / if let Some(ref prefix) = prefix {
27 | | if prefix.len() > 8 {
28 | | ctx.say(format_message!(resolved_language, "config-prefix-too-long"))
29 | | .await?;
... |
32 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
26 ~ if let Some(ref prefix) = prefix
27 ~ && prefix.len() > 8 {
28 | ctx.say(format_message!(resolved_language, "config-prefix-too-long"))
29 | .await?;
30 | return Ok(());
31 ~ }
|
|
|
this `if` statement can be collapsed:
scripty_commands/src/cmds/config/language.rs#L38
warning: this `if` statement can be collapsed
--> scripty_commands/src/cmds/config/language.rs:38:3
|
38 | / if let Some(row) = res {
39 | | if row.translate {
40 | | ctx.reply(format_message!(
41 | | resolved_language,
... |
47 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
38 ~ if let Some(row) = res
39 ~ && row.translate {
40 | ctx.reply(format_message!(
...
45 | return Ok(());
46 ~ }
|
|
|
this `if` statement can be collapsed:
scripty_commands/src/cmds/config/default_settings/new_thread.rs#L24
warning: this `if` statement can be collapsed
--> scripty_commands/src/cmds/config/default_settings/new_thread.rs:24:2
|
24 | / if new_thread {
25 | | if let Some(error_translation_key) = do_preflight_new_thread(&ctx, guild_id).await? {
26 | | ctx.say(format_message!(resolved_language, error_translation_key))
27 | | .await?;
... |
30 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
24 ~ if new_thread
25 ~ && let Some(error_translation_key) = do_preflight_new_thread(&ctx, guild_id).await? {
26 | ctx.say(format_message!(resolved_language, error_translation_key))
27 | .await?;
28 | return Ok(());
29 ~ }
|
|
|
this `if` statement can be collapsed:
scripty_commands/src/cmds/config/default_settings/ephemeral.rs#L24
warning: this `if` statement can be collapsed
--> scripty_commands/src/cmds/config/default_settings/ephemeral.rs:24:2
|
24 | / if ephemeral {
25 | | if let Some(error_translation_key) = do_preflight_ephemeral(&ctx, guild_id).await? {
26 | | ctx.say(format_message!(resolved_language, error_translation_key))
27 | | .await?;
... |
30 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
24 ~ if ephemeral
25 ~ && let Some(error_translation_key) = do_preflight_ephemeral(&ctx, guild_id).await? {
26 | ctx.say(format_message!(resolved_language, error_translation_key))
27 | .await?;
28 | return Ok(());
29 ~ }
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/admin/shutdown.rs#L49
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/admin/shutdown.rs:49:11
|
49 | f.arg(format!("voice:{{{}}}:webhook_token", guild_id));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
49 - f.arg(format!("voice:{{{}}}:webhook_token", guild_id));
49 + f.arg(format!("voice:{{{guild_id}}}:webhook_token"));
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/admin/shutdown.rs#L44
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/admin/shutdown.rs:44:11
|
44 | f.arg(format!("voice:{{{}}}:webhook_id", guild_id));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
44 - f.arg(format!("voice:{{{}}}:webhook_id", guild_id));
44 + f.arg(format!("voice:{{{guild_id}}}:webhook_id"));
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/admin/guild_check.rs#L136
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/admin/guild_check.rs:136:5
|
136 | write!(&mut response, "\n{} guilds were truncated", count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
136 - write!(&mut response, "\n{} guilds were truncated", count)
136 + write!(&mut response, "\n{count} guilds were truncated")
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/admin/guild_check.rs#L130
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/admin/guild_check.rs:130:4
|
130 | writeln!(&mut response, "{} ({}): {}", name, id, ratio)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
130 - writeln!(&mut response, "{} ({}): {}", name, id, ratio)
130 + writeln!(&mut response, "{name} ({id}): {ratio}")
|
|
|
variables can be used directly in the `format!` string:
scripty_commands/src/cmds/admin/guild_check.rs#L110
warning: variables can be used directly in the `format!` string
--> scripty_commands/src/cmds/admin/guild_check.rs:110:2
|
110 | / write!(
111 | | &mut response,
112 | | "{} guilds were unable to be fetched",
113 | | error_count
114 | | )
| |_____^
|
= 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
|
|
variables can be used directly in the `format!` string:
scripty_webserver/src/errors.rs#L78
warning: variables can be used directly in the `format!` string
--> scripty_webserver/src/errors.rs:78:46
|
78 | WebServerError::DatabaseError(Some(e)) => write!(f, "Database error: {:?}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
78 - WebServerError::DatabaseError(Some(e)) => write!(f, "Database error: {:?}", e),
78 + WebServerError::DatabaseError(Some(e)) => write!(f, "Database error: {e:?}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_webserver/src/endpoints/premium/mod.rs#L232
warning: variables can be used directly in the `format!` string
--> scripty_webserver/src/endpoints/premium/mod.rs:232:13
|
232 | |t| format!("<t:{0}:F> (<t:{0}:R>)", t)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
232 - |t| format!("<t:{0}:F> (<t:{0}:R>)", t)
232 + |t| format!("<t:{t}:F> (<t:{t}:R>)")
|
|
|
unused import: `ThreadId`:
scripty_commands/src/cmds/join.rs#L10
warning: unused import: `ThreadId`
--> scripty_commands/src/cmds/join.rs:10:26
|
10 | id::{GenericChannelId, ThreadId},
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/handler/normal/voice_state_update.rs#L218
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/handler/normal/voice_state_update.rs:218:6
|
218 | / format!(
219 | | "Failed to join voice channel due to auto-join error: {}\nYou may want to \
220 | | report this in our support server.",
221 | | e
222 | | ),
| |_____________________^
|
= 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_bot_utils/src/file_transcripts/mod.rs#L201
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/mod.rs:201:5
|
201 | format!("transcript_{}.txt", filename),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
201 - format!("transcript_{}.txt", filename),
201 + format!("transcript_{filename}.txt"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/state.rs#L132
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/state.rs:132:5
|
132 | write!(f, "ffmpeg exited with code {}", code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
132 - write!(f, "ffmpeg exited with code {}", code)
132 + write!(f, "ffmpeg exited with code {code}")
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/state.rs#L129
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/state.rs:129:5
|
129 | write!(f, "ffprobe returned an error: {}", e)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
129 - write!(f, "ffprobe returned an error: {}", e)
129 + write!(f, "ffprobe returned an error: {e}")
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/state.rs#L126
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/state.rs:126:5
|
126 | write!(f, "couldn't parse duration from output: {}", e)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
126 - write!(f, "couldn't parse duration from output: {}", e)
126 + write!(f, "couldn't parse duration from output: {e}")
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/state.rs#L123
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/state.rs:123:5
|
123 | write!(f, "couldn't decode OGG Opus source: {}", e)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
123 - write!(f, "couldn't decode OGG Opus source: {}", e)
123 + write!(f, "couldn't decode OGG Opus source: {e}")
|
|
|
this `if` statement can be collapsed:
scripty_bot_utils/src/file_transcripts/raw_pcm_conversions.rs#L131
warning: this `if` statement can be collapsed
--> scripty_bot_utils/src/file_transcripts/raw_pcm_conversions.rs:131:2
|
131 | / if let Some(code) = res.code() {
132 | | if code != 0 {
133 | | error!(?path, "ffmpeg exited with code {}", code);
134 | | return Err(FileTranscriptError::FfmpegExited(code));
135 | | }
136 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
131 ~ if let Some(code) = res.code()
132 ~ && code != 0 {
133 | error!(?path, "ffmpeg exited with code {}", code);
134 | return Err(FileTranscriptError::FfmpegExited(code));
135 ~ }
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L92
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:92:35
|
92 | Self::DurationParseError(e) => write!(f, "failed to parse duration as float: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
92 - Self::DurationParseError(e) => write!(f, "failed to parse duration as float: {}", e),
92 + Self::DurationParseError(e) => write!(f, "failed to parse duration as float: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L91
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:91:21
|
91 | Self::Opus(e) => write!(f, "couldn't decode OGG Opus file: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
91 - Self::Opus(e) => write!(f, "couldn't decode OGG Opus file: {}", e),
91 + Self::Opus(e) => write!(f, "couldn't decode OGG Opus file: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L90
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:90:25
|
90 | Self::TempFile(e) => write!(f, "tempfile error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
90 - Self::TempFile(e) => write!(f, "tempfile error: {}", e),
90 + Self::TempFile(e) => write!(f, "tempfile error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L89
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:89:24
|
89 | Self::Ffprobe(e) => write!(f, "ffprobe error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
89 - Self::Ffprobe(e) => write!(f, "ffprobe error: {}", e),
89 + Self::Ffprobe(e) => write!(f, "ffprobe error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L88
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:88:32
|
88 | Self::FfmpegExited(code) => write!(f, "ffmpeg exited with code {}", code),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
88 - Self::FfmpegExited(code) => write!(f, "ffmpeg exited with code {}", code),
88 + Self::FfmpegExited(code) => write!(f, "ffmpeg exited with code {code}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L85
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:85:19
|
85 | 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
|
85 - Self::Io(e) => write!(f, "io error: {}", e),
85 + Self::Io(e) => write!(f, "io error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L84
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:84:22
|
84 | Self::Model(e) => write!(f, "model error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
84 - Self::Model(e) => write!(f, "model error: {}", e),
84 + Self::Model(e) => write!(f, "model error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L83
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:83:25
|
83 | Self::Serenity(e) => write!(f, "serenity error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
83 - Self::Serenity(e) => write!(f, "serenity error: {}", e),
83 + Self::Serenity(e) => write!(f, "serenity error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/file_transcripts/error.rs#L82
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/file_transcripts/error.rs:82:21
|
82 | Self::Sqlx(e) => write!(f, "sqlx error: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
82 - Self::Sqlx(e) => write!(f, "sqlx error: {}", e),
82 + Self::Sqlx(e) => write!(f, "sqlx error: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/message.rs#L93
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/message.rs:93:26
|
93 | CreateEmbedAuthor::new(format!("{} ({})", author_name, author_id)).icon_url(author_pfp),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
93 - CreateEmbedAuthor::new(format!("{} ({})", author_name, author_id)).icon_url(author_pfp),
93 + CreateEmbedAuthor::new(format!("{author_name} ({author_id})")).icon_url(author_pfp),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/message.rs#L62
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/message.rs:62:31
|
62 | e = e.field("Error (debug)", format!("{:?}", err), false);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
62 - e = e.field("Error (debug)", format!("{:?}", err), false);
62 + e = e.field("Error (debug)", format!("{err:?}"), false);
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/message.rs#L46
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/message.rs:46:15
|
46 | e = e.title(format!("Error while {}", inv_ctx));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
46 - e = e.title(format!("Error while {}", inv_ctx));
46 + e = e.title(format!("Error while {inv_ctx}"));
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L216
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:216:27
|
216 | Some(p) => Cow::from(format!("Permissions missing: {}", p)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
216 - Some(p) => Cow::from(format!("Permissions missing: {}", p)),
216 + Some(p) => Cow::from(format!("Permissions missing: {p}")),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L200
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:200:5
|
200 | format!("Permissions missing: {}", missing_permissions),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
200 - format!("Permissions missing: {}", missing_permissions),
200 + format!("Permissions missing: {missing_permissions}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L124
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:124:14
|
124 | None => format!("{}", error),
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
124 - None => format!("{}", error),
124 + None => format!("{error}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L117
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:117:7
|
117 | / format!(
118 | | "Failed to parse `{}` because `{}`\n**Hint:** if you're trying to \
119 | | mention a channel with prefix commands, use its ID, as they are the \
120 | | most reliable way of doing so.",
121 | | input, error
122 | | )
| |_________________________^
|
= 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_bot_utils/src/error/handler.rs#L89
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:89:7
|
89 | / format!(
90 | | "```\n{:?}\n```\nThis has been automatically reported. Please do not \
91 | | attempt to repeatedly use this command.",
92 | | e
93 | | ),
| |_________________________^
|
= 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_bot_utils/src/error/handler.rs#L88
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:88:7
|
88 | format!("An error happened while processing {}", cmd_name),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
88 - format!("An error happened while processing {}", cmd_name),
88 + format!("An error happened while processing {cmd_name}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L79
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:79:7
|
79 | format!("Invalid use of {}", cmd_name),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
79 - format!("Invalid use of {}", cmd_name),
79 + format!("Invalid use of {cmd_name}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/handler.rs#L51
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:51:7
|
51 | / format!(
52 | | "I tried doing something (not sure what) but was not allowed to. \
53 | | Please check my permissions and try again.\nDiscord error code {:?}, \
54 | | message: `{}`",
55 | | code, message
56 | | ),
| |_________________________^
|
= 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_bot_utils/src/error/handler.rs#L50
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/handler.rs:50:7
|
50 | format!("Missing permissions for {}!", cmd_name),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
50 - format!("Missing permissions for {}!", cmd_name),
50 + format!("Missing permissions for {cmd_name}!"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L289
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:289:32
|
289 | BackgroundTaskFailure(e) => format!("Background thread panicked: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
289 - BackgroundTaskFailure(e) => format!("Background thread panicked: {}", e).into(),
289 + BackgroundTaskFailure(e) => format!("Background thread panicked: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L283
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:283:20
|
283 | KiaiError(e) => format!("Kiai API error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
283 - KiaiError(e) => format!("Kiai API error: {}", e).into(),
283 + KiaiError(e) => format!("Kiai API error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L282
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:282:29
|
282 | AudioTranscription(e) => format!("Failed to transcribe audio message: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
282 - AudioTranscription(e) => format!("Failed to transcribe audio message: {}", e).into(),
282 + AudioTranscription(e) => format!("Failed to transcribe audio message: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L281
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:281:17
|
281 | Custom(e) => format!("Custom error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
281 - Custom(e) => format!("Custom error: {}", e).into(),
281 + Custom(e) => format!("Custom error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L277
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:277:24
|
277 | Transcription(e) => format!("STT model returned an error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
277 - Transcription(e) => format!("STT model returned an error: {}", e).into(),
277 + Transcription(e) => format!("STT model returned an error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L270
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:270:29
|
270 | VoiceMessageDecode(e) => format!(
| ______________________________________^
271 | | "Failed to decode voice message: {}\nNote: this error can be caused by uploading \
272 | | custom voice message files. Scripty will only attempt to decode those uploaded \
273 | | with the same format as the official client.",
274 | | e
275 | | )
| |_____________^
|
= 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_bot_utils/src/error/error_type.rs#L269
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:269:20
|
269 | RedisPool(e) => format!("Redis pool returned an error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
269 - RedisPool(e) => format!("Redis pool returned an error: {}", e).into(),
269 + RedisPool(e) => format!("Redis pool returned an error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L268
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:268:16
|
268 | Redis(e) => format!("Redis returned an error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
268 - Redis(e) => format!("Redis returned an error: {}", e).into(),
268 + Redis(e) => format!("Redis returned an error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L265
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:265:18
|
265 | Reqwest(e) => format!("error while sending http request: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
265 - Reqwest(e) => format!("error while sending http request: {}", e).into(),
265 + Reqwest(e) => format!("error while sending http request: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L264
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:264:15
|
264 | Join(e) => format!("failed to join VC: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
264 - Join(e) => format!("failed to join VC: {}", e).into(),
264 + Join(e) => format!("failed to join VC: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L261
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:261:13
|
261 | Db(e) => format!("Database returned an error: {:?}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
261 - Db(e) => format!("Database returned an error: {:?}", e).into(),
261 + Db(e) => format!("Database returned an error: {e:?}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/error/error_type.rs#L256
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:256:44
|
256 | InvalidChannelType { expected, got } => format!(
| _____________________________________________________^
257 | | "Got an invalid channel type {:?} when expected {:?}",
258 | | got, expected
259 | | )
| |_____________^
|
= 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_bot_utils/src/error/error_type.rs#L255
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/error/error_type.rs:255:19
|
255 | Serenity(e) => format!("Discord/wrapper returned an error: {}", e).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
255 - Serenity(e) => format!("Discord/wrapper returned an error: {}", e).into(),
255 + Serenity(e) => format!("Discord/wrapper returned an error: {e}").into(),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/entity_block.rs#L186
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/entity_block.rs:186:4
|
186 | format!("guild:{{{}}}:blocked", guild_id),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
186 - format!("guild:{{{}}}:blocked", guild_id),
186 + format!("guild:{{{guild_id}}}:blocked"),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/entity_block.rs#L70
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/entity_block.rs:70:30
|
70 | .get::<_, Option<String>>(format!("guild:{{{}}}:blocked", guild))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
70 - .get::<_, Option<String>>(format!("guild:{{{}}}:blocked", guild))
70 + .get::<_, Option<String>>(format!("guild:{{{guild}}}:blocked"))
|
|
|
this `if` statement can be collapsed:
scripty_bot_utils/src/entity_block.rs#L68
warning: this `if` statement can be collapsed
--> scripty_bot_utils/src/entity_block.rs:68:2
|
68 | / if let Some(guild) = ctx.guild_id() {
69 | | if let Some(reason) = redis
70 | | .get::<_, Option<String>>(format!("guild:{{{}}}:blocked", guild))
71 | | .await?
... |
98 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
68 ~ if let Some(guild) = ctx.guild_id()
69 ~ && let Some(reason) = redis
70 | .get::<_, Option<String>>(format!("guild:{{{}}}:blocked", guild))
...
96 | return Ok(false);
97 ~ }
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/dm_support.rs#L239
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/dm_support.rs:239:39
|
239 | CreateMessage::default().content(format!("failed to handle opening: {}", e)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
239 - CreateMessage::default().content(format!("failed to handle opening: {}", e)),
239 + CreateMessage::default().content(format!("failed to handle opening: {e}")),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/dm_support.rs#L172
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/dm_support.rs:172:39
|
172 | CreateMessage::default().content(format!("Couldn't send message: {}", e)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
172 - CreateMessage::default().content(format!("Couldn't send message: {}", e)),
172 + CreateMessage::default().content(format!("Couldn't send message: {e}")),
|
|
|
variables can be used directly in the `format!` string:
scripty_bot_utils/src/dm_support.rs#L113
warning: variables can be used directly in the `format!` string
--> scripty_bot_utils/src/dm_support.rs:113:23
|
113 | .reply(&ctx.http, format!("failed to send message: {}", 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
|
113 - .reply(&ctx.http, format!("failed to send message: {}", e))
113 + .reply(&ctx.http, format!("failed to send message: {e}"))
|
|
|
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable:
scripty_bot_utils/src/lib.rs#L2
warning: the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
--> scripty_bot_utils/src/lib.rs:2:12
|
2 | #![feature(slice_as_chunks)]
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L575
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:575:4
|
575 | / format!(
576 | | "STT service timed out (SSRC {}, session ID {})",
577 | | ssrc, session_id
578 | | )
| |_____________^
|
= 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_audio_handler/src/events/voice_tick.rs#L571
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:571:4
|
571 | format!("STT service disconnected (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
571 - format!("STT service disconnected (SSRC {})", ssrc)
571 + format!("STT service disconnected (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L567
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:567:4
|
567 | format!("STT service initialization timed out (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
567 - format!("STT service initialization timed out (SSRC {})", ssrc)
567 + format!("STT service initialization timed out (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L563
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:563:4
|
563 | format!("STT service overloaded (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
563 - format!("STT service overloaded (SSRC {})", ssrc)
563 + format!("STT service overloaded (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L559
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:559:4
|
559 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
559 - format!("internal STT service error (SSRC {})", ssrc)
559 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L555
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:555:4
|
555 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
555 - format!("internal STT service error (SSRC {})", ssrc)
555 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L551
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:551:4
|
551 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
551 - format!("internal STT service error (SSRC {})", ssrc)
551 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L547
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:547:4
|
547 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
547 - format!("internal STT service error (SSRC {})", ssrc)
547 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L543
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:543:4
|
543 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
543 - format!("internal STT service error (SSRC {})", ssrc)
543 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L539
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:539:4
|
539 | format!("no available STT servers (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
539 - format!("no available STT servers (SSRC {})", ssrc)
539 + format!("no available STT servers (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L535
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:535:4
|
535 | format!("internal STT service error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
535 - format!("internal STT service error (SSRC {})", ssrc)
535 + format!("internal STT service error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L531
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:531:4
|
531 | format!("internal IO error (SSRC {})", ssrc)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
531 - format!("internal IO error (SSRC {})", ssrc)
531 + format!("internal IO error (SSRC {ssrc})")
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/voice_tick.rs#L289
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/voice_tick.rs:289:6
|
289 | format!("[{}]: {}", username, final_result)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
289 - format!("[{}]: {}", username, final_result)
289 + format!("[{username}]: {final_result}")
|
|
|
this `if` statement can be collapsed:
scripty_audio_handler/src/events/speaking_state_update.rs#L75
warning: this `if` statement can be collapsed
--> scripty_audio_handler/src/events/speaking_state_update.rs:75:2
|
75 | / if let Some(old_user_id) = ssrc_state
76 | | .ssrc_user_id_map
77 | | .insert(state_update.ssrc, user_id)
... |
86 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
77 ~ .insert(state_update.ssrc, user_id)
78 ~ && old_user_id != user_id {
79 | warn!(
...
83 | );
84 ~ }
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/driver_disconnect.rs#L113
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/driver_disconnect.rs:113:17
|
113 | .content(format!("Failed to reconnect due to: {}", e)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
113 - .content(format!("Failed to reconnect due to: {}", e)),
113 + .content(format!("Failed to reconnect due to: {e}")),
|
|
|
this `if` statement can be collapsed:
scripty_audio_handler/src/events/driver_disconnect.rs#L96
warning: this `if` statement can be collapsed
--> scripty_audio_handler/src/events/driver_disconnect.rs:96:4
|
96 | / if let Err(ErrorKind::Join(e)) = connect_to_vc(
97 | | ctx2,
98 | | serenity::all::GuildId::new(guild_id.get()),
99 | | channel_id,
... |
122 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
106 ~ .map_err(|x| x.kind)
107 ~ && let Err(e) = webhook2
108 | .execute(
...
119 | );
120 ~ }
|
|
|
this function has too many arguments (10/7):
scripty_audio_handler/src/events/driver_disconnect.rs#L19
warning: this function has too many arguments (10/7)
--> scripty_audio_handler/src/events/driver_disconnect.rs:19:1
|
19 | / pub async fn driver_disconnect(
20 | | guild_id: GuildId,
21 | | reason: Option<DisconnectReason>,
22 | | ctx: Context,
... |
29 | | ephemeral: bool,
30 | | ) {
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/events/client_disconnect.rs#L85
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/events/client_disconnect.rs:85:27
|
85 | transcript_results.push(format!("[{}] - event: disconnected", username));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
85 - transcript_results.push(format!("[{}] - event: disconnected", username));
85 + transcript_results.push(format!("[{username}] - event: disconnected"));
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/error.rs#L103
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/error.rs:103:27
|
103 | ErrorKind::Redis(e) => write!(f, "RedisError: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
103 - ErrorKind::Redis(e) => write!(f, "RedisError: {}", e),
103 + ErrorKind::Redis(e) => write!(f, "RedisError: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/error.rs#L101
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/error.rs:101:30
|
101 | ErrorKind::Serenity(e) => write!(f, "SerenityError: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
101 - ErrorKind::Serenity(e) => write!(f, "SerenityError: {}", e),
101 + ErrorKind::Serenity(e) => write!(f, "SerenityError: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/error.rs#L100
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/error.rs:100:30
|
100 | ErrorKind::Database(e) => write!(f, "DatabaseError: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
100 - ErrorKind::Database(e) => write!(f, "DatabaseError: {}", e),
100 + ErrorKind::Database(e) => write!(f, "DatabaseError: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/error.rs#L99
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/error.rs:99:26
|
99 | ErrorKind::Join(e) => write!(f, "JoinError: {}", e),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
99 - ErrorKind::Join(e) => write!(f, "JoinError: {}", e),
99 + ErrorKind::Join(e) => write!(f, "JoinError: {e}"),
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/connect.rs#L221
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/connect.rs:221:9
|
221 | f.arg(format!("voice:{{{}}}:webhook_id", guild_id))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
221 - f.arg(format!("voice:{{{}}}:webhook_id", guild_id))
221 + f.arg(format!("voice:{{{guild_id}}}:webhook_id"))
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/connect.rs#L214
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/connect.rs:214:9
|
214 | f.arg(format!("voice:{{{}}}:webhook_token", guild_id))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
214 - f.arg(format!("voice:{{{}}}:webhook_token", guild_id))
214 + f.arg(format!("voice:{{{guild_id}}}:webhook_token"))
|
|
|
swapping with a temporary value is inefficient:
scripty_audio_handler/src/audio_handler.rs#L229
warning: swapping with a temporary value is inefficient
--> scripty_audio_handler/src/audio_handler.rs:229:3
|
229 | / std::mem::swap(
230 | | &mut *self.transcribe_only_role.write(),
231 | | &mut guild_res
232 | | .transcript_only_role
233 | | .map(|x| RoleId::new(x as u64)),
234 | | );
| |_________^
|
note: this expression returns a temporary value
--> scripty_audio_handler/src/audio_handler.rs:231:9
|
231 | &mut guild_res
| __________________^
232 | | .transcript_only_role
233 | | .map(|x| RoleId::new(x as u64)),
| |_______________________________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#swap_with_temporary
= note: `#[warn(clippy::swap_with_temporary)]` on by default
help: use assignment instead
|
229 ~ *self.transcribe_only_role.write() = guild_res
230 ~ .transcript_only_role
231 ~ .map(|x| RoleId::new(x as u64));
|
|
|
variables can be used directly in the `format!` string:
scripty_audio_handler/src/audio_handler.rs#L182
warning: variables can be used directly in the `format!` string
--> scripty_audio_handler/src/audio_handler.rs:182:20
|
182 | .content(format!("Failed to delete this thread: {}", 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
|
182 - .content(format!("Failed to delete this thread: {}", e)),
182 + .content(format!("Failed to delete this thread: {e}")),
|
|
|
this function has too many arguments (10/7):
scripty_audio_handler/src/audio_handler.rs#L86
warning: this function has too many arguments (10/7)
--> scripty_audio_handler/src/audio_handler.rs:86:2
|
86 | / pub async fn new(
87 | | guild_id: GuildId,
88 | | webhook: Webhook,
89 | | context: Context,
... |
96 | | ephemeral: bool,
97 | | ) -> Result<Self, 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
|
|
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#L65
warning: variables can be used directly in the `format!` string
--> scripty_stt/src/ffprobe.rs:65:28
|
65 | Self::Signal(signal) => write!(f, "signal: {}", signal),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
65 - Self::Signal(signal) => write!(f, "signal: {}", signal),
65 + Self::Signal(signal) => write!(f, "signal: {signal}"),
|
|
|
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_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#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() {
|
|
|
variables can be used directly in the `format!` string:
scripty_utils/src/embed_pagination.rs#L172
warning: variables can be used directly in the `format!` string
--> scripty_utils/src/embed_pagination.rs:172:53
|
172 | footer_additional.map_or_else(String::new, |s| format!(" | {}", s))
| ^^^^^^^^^^^^^^^^^^^
|
= 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
|
172 - footer_additional.map_or_else(String::new, |s| format!(" | {}", s))
172 + footer_additional.map_or_else(String::new, |s| format!(" | {s}"))
|
|
|
Rust project - latest (x86_64-unknown-linux-gnu):
scripty_commands/src/cmds/join.rs#L10
unused import: `ThreadId`
|
|
Rust project - latest (x86_64-unknown-linux-gnu):
scripty_bot_utils/src/lib.rs#L2
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
|
|
Rust project - latest (x86_64-unknown-linux-gnu):
scripty_audio_handler/src/events/voice_tick.rs#L151
unused variable: `auto_detect_lang`
|
|
Rust project - latest (x86_64-unknown-linux-gnu):
scripty_stt/src/lib.rs#L1
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
|
|
Rust project - latest (x86_64-unknown-linux-gnu)
Cache not found for keys: v0-rust-build-Linux-x64-049d4401-2309c255, v0-rust-build-Linux-x64-049d4401
|
|
Rust project - latest (aarch64-unknown-linux-gnu)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
|
Rust project - latest (aarch64-unknown-linux-gnu):
scripty_commands/src/cmds/join.rs#L10
unused import: `ThreadId`
|
|
Rust project - latest (aarch64-unknown-linux-gnu):
scripty_bot_utils/src/lib.rs#L2
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
|
|
Rust project - latest (aarch64-unknown-linux-gnu):
scripty_audio_handler/src/events/voice_tick.rs#L151
unused variable: `auto_detect_lang`
|
|
Rust project - latest (aarch64-unknown-linux-gnu):
scripty_stt/src/lib.rs#L1
the feature `slice_as_chunks` has been stable since 1.88.0-nightly and no longer requires an attribute to enable
|
|
Rust project - latest (aarch64-unknown-linux-gnu)
Cache not found for keys: v0-rust-build-Linux-x64-049d4401-2309c255, v0-rust-build-Linux-x64-049d4401
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
scripty_v2-x86_64-unknown-linux-gnu
Expired
|
43.5 MB |
sha256:93dcc59b4b2963155eeffc7c84c6f35fb0411ee321a53b863f9deaa2f0efd5d9
|
|