Add logging for startup #104
Annotations
1 error and 22 warnings
Clippy
Clippy had exited with the 101 exit code
|
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
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#L148
warning: unused variable: `auto_detect_lang`
--> scripty_audio_handler/src/events/voice_tick.rs:148:3
|
148 | auto_detect_lang,
| ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _`
|
= note: `#[warn(unused_variables)]` on by default
|
clamp-like pattern without using clamp function:
scripty_stt/src/decode_ogg_opus.rs#L15
warning: clamp-like pattern without using clamp function
--> scripty_stt/src/decode_ogg_opus.rs:15:16
|
15 | let sample = sample.max(-1.0).min(1.0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `sample.clamp(-1.0, 1.0)`
|
= note: clamp will panic if max < min, min.is_nan(), or max.is_nan()
= note: clamp returns NaN if the input is NaN
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
= note: `#[warn(clippy::manual_clamp)]` on by default
|
field `message` is never read:
scripty_botlists/src/lists/disforge_com/models.rs#L9
warning: field `message` is never read
--> scripty_botlists/src/lists/disforge_com/models.rs:9:6
|
7 | pub struct PostStatsResponse {
| ----------------- field in this struct
8 | pub status: String,
9 | pub message: String,
| ^^^^^^^
|
= note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
|
field `status` is never read:
scripty_botlists/src/lists/discordextremelist_xyz/models.rs#L11
warning: field `status` is never read
--> scripty_botlists/src/lists/discordextremelist_xyz/models.rs:11:6
|
9 | pub struct PostStatsResponse {
| ----------------- field in this struct
10 | pub error: bool,
11 | pub status: u16,
| ^^^^^^
|
= note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
|
fields `code` and `message` are never read:
scripty_botlists/src/lists/discord_bots_gg/models.rs#L10
warning: fields `code` and `message` are never read
--> scripty_botlists/src/lists/discord_bots_gg/models.rs:10:6
|
9 | pub struct PostStatsResponse {
| ----------------- fields in this struct
10 | pub code: u16,
| ^^^^
11 | pub message: String,
| ^^^^^^^
|
= note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
function `init_voice_cache_async` is never used:
scripty_data_storage/src/cache/voice.rs#L2
warning: function `init_voice_cache_async` is never used
--> scripty_data_storage/src/cache/voice.rs:2:14
|
2 | pub async fn init_voice_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
| ^^^^^^^^^^^^^^^^^^^^^^
|
function `init_text_cache_async` is never used:
scripty_data_storage/src/cache/text.rs#L2
warning: function `init_text_cache_async` is never used
--> scripty_data_storage/src/cache/text.rs:2:14
|
2 | pub async fn init_text_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
this function has too many arguments (8/7):
scripty_automod/src/types.rs#L73
warning: this function has too many arguments (8/7)
--> scripty_automod/src/types.rs:73:2
|
73 | / pub fn new(
74 | | guild_id: u64,
75 | | internal_id: i32,
76 | | enabled: bool,
... |
81 | | auto_join_voice: bool,
82 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
unexpected `cfg` condition name: `tokio_unstable`:
scripty_metrics/src/rt_metrics.rs#L5
warning: unexpected `cfg` condition name: `tokio_unstable`
--> scripty_metrics/src/rt_metrics.rs:5:11
|
5 | #[cfg(not(tokio_unstable))]
| ^^^^^^^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
unexpected `cfg` condition name: `ignore_os`:
scripty_config/src/lib.rs#L16
warning: unexpected `cfg` condition name: `ignore_os`
--> scripty_config/src/lib.rs:16:41
|
16 | #[cfg(all(not(target_os = "linux"), not(ignore_os)))]
| ^^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(ignore_os)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
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/
|