Skip to content

Merge pull request #89 from ValgulNecron/ValgulNecron-patch-1 #7

Merge pull request #89 from ValgulNecron/ValgulNecron-patch-1

Merge pull request #89 from ValgulNecron/ValgulNecron-patch-1 #7

Triggered via push November 2, 2023 12:52
Status Success
Total duration 1h 1m 46s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
called `unwrap` on `response` after checking its variant with `is_none`: src/cmd/general_module/function/request.rs#L114
warning: called `unwrap` on `response` after checking its variant with `is_none` --> src/cmd/general_module/function/request.rs:114:13 | 108 | if json_resp.is_none() || response.is_none() || last_updated.is_none() { | ------------------ the check is happening here ... 114 | response.unwrap() | ^^^^^^^^^^^^^^^^^ | = help: try using `if let` or `match` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
called `unwrap` on `last_updated` after checking its variant with `is_none`: src/cmd/general_module/function/request.rs#L111
warning: called `unwrap` on `last_updated` after checking its variant with `is_none` --> src/cmd/general_module/function/request.rs:111:26 | 108 | if json_resp.is_none() || response.is_none() || last_updated.is_none() { | ---------------------- the check is happening here ... 111 | let updated_at = last_updated.unwrap(); | ^^^^^^^^^^^^^^^^^^^^^ | = help: try using `if let` or `match` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap = note: `#[warn(clippy::unnecessary_unwrap)]` on by default
useless use of `vec!`: src/cmd/ai_module/cmd/translation.rs#L81
warning: useless use of `vec!` --> src/cmd/ai_module/cmd/translation.rs:81:34 | 81 | let allowed_extensions = vec!["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm"]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm"]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
useless use of `vec!`: src/cmd/ai_module/cmd/transcript.rs#L94
warning: useless use of `vec!` --> src/cmd/ai_module/cmd/transcript.rs:94:34 | 94 | let allowed_extensions = vec!["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm"]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm"]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec = note: `#[warn(clippy::useless_vec)]` on by default
associated function `get_avatar_register_localised` is never used: src/cmd/lang_struct/register/general/struct_avatar_register.rs#L19
warning: associated function `get_avatar_register_localised` is never used --> src/cmd/lang_struct/register/general/struct_avatar_register.rs:19:12 | 18 | impl RegisterLocalisedAvatar { | ---------------------------- associated function in this implementation 19 | pub fn get_avatar_register_localised() -> Result<RegisterLocalisedAvatarList, &'static str> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
type alias `RegisterLocalisedAvatarList` is never used: src/cmd/lang_struct/register/general/struct_avatar_register.rs#L16
warning: type alias `RegisterLocalisedAvatarList` is never used --> src/cmd/lang_struct/register/general/struct_avatar_register.rs:16:6 | 16 | type RegisterLocalisedAvatarList = HashMap<String, RegisterLocalisedAvatar>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `register` is never used: src/cmd/general_module/cmd/avatar.rs#L5
warning: function `register` is never used --> src/cmd/general_module/cmd/avatar.rs:5:8 | 5 | pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand { | ^^^^^^^^
function `error_no_user_specified` is never used: src/cmd/error_modules/error_no.rs#L7
warning: function `error_no_user_specified` is never used --> src/cmd/error_modules/error_no.rs:7:14 | 7 | pub async fn error_no_user_specified( | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
docker
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/login-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
docker
The `save-state` 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/
docker
The `save-state` 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/
docker
The `save-state` 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/