feat: add genkai-point-formula v3 #244
Annotations
2 errors and 5 warnings
use of `.then_some(..).unwrap_or(..)` can be written more clearly with `if .. else ..`:
src/bot/genkai_point/model.rs#L33
error: use of `.then_some(..).unwrap_or(..)` can be written more clearly with `if .. else ..`
--> src/bot/genkai_point/model.rs:33:26
|
33 | let efficiency = efficiency.is_nan().then_some(0.0).unwrap_or(efficiency);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `if efficiency.is_nan() { 0.0 } else { efficiency }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::obfuscated_if_else)]` implied by `#[deny(warnings)]`
|
build
Clippy had exited with the 101 exit code
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
build
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/
|
build
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/
|
build
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/
|
build
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/
|