handle reachout #301
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.2 (25ef9e3d8 2024-04-09)
- cargo 1.77.2 (e52e36006 2024-03-26)
- clippy 0.1.77 (25ef9e3 2024-04-09)
Annotations
Check warning on line 152 in bin/bot/src/discord/slash/surveys.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> bin/bot/src/discord/slash/surveys.rs:152:21
|
152 | format!("survey_submit:{}", id),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
152 - format!("survey_submit:{}", id),
152 + format!("survey_submit:{id}"),
|
Check warning on line 10 in bin/bot/src/discord/handler/mod.rs
github-actions / clippy
unused import: `futures::StreamExt`
warning: unused import: `futures::StreamExt`
--> bin/bot/src/discord/handler/mod.rs:10:5
|
10 | futures::StreamExt,
| ^^^^^^^^^^^^^^^^^^
Check warning on line 17 in bin/bot/src/discord/handler/mod.rs
github-actions / clippy
unused import: `GUILD`
warning: unused import: `GUILD`
--> bin/bot/src/discord/handler/mod.rs:17:5
|
17 | GUILD,
| ^^^^^
Check warning on line 6 in bin/bot/src/discord/handler/mod.rs
github-actions / clippy
unused imports: `CreateActionRow`, `CreateButton`, `CreateMessage`
warning: unused imports: `CreateActionRow`, `CreateButton`, `CreateMessage`
--> bin/bot/src/discord/handler/mod.rs:6:9
|
6 | CreateActionRow, CreateButton, CreateInteractionResponse, CreateInteractionResponseMessage,
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^
7 | CreateMessage,
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default