Update xbox_security_token with less general error responses #36
rust.yml
on: pull_request
Validate formatting
23s
Lint with Clippy
54s
Annotations
1 error and 5 warnings
Validate formatting
JsValue(Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
at ExecState._setResult (/home/runner/work/_actions/FrancisRussell/ferrous-actions/v0.1.0-beta.2/dist/index.js:1:61859)
at ExecState.CheckComplete (/home/runner/work/_actions/FrancisRussell/ferrous-actions/v0.1.0-beta.2/dist/index.js:1:61419)
at ChildProcess.<anonymous> (/home/runner/work/_actions/FrancisRussell/ferrous-actions/v0.1.0-beta.2/dist/index.js:1:60260)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5))
|
Validate formatting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, FrancisRussell/ferrous-actions@v0.1.0-beta.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Validate formatting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Lint with Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: FrancisRussell/ferrous-actions@v0.1.0-beta.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
cargo-clippy: accessing first element with `xbox_resp
.display_claims
.get("xui")
.ok_or(MinecraftAuthorizationError::MissingClaims)?.get(0)`:
src/lib.rs#L260
warning: accessing first element with `xbox_resp
.display_claims
.get("xui")
.ok_or(MinecraftAuthorizationError::MissingClaims)?.get(0)`
--> src/lib.rs:260:25
|
260 | let user_hash = xbox_resp
| _________________________^
261 | | .display_claims
262 | | .get("xui")
263 | | .ok_or(MinecraftAuthorizationError::MissingClaims)?
264 | | .get(0)
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
260 ~ let user_hash = xbox_resp
261 + .display_claims
262 + .get("xui")
263 + .ok_or(MinecraftAuthorizationError::MissingClaims)?.first()
|
|
cargo-clippy: 1 warning emitted
warning: 1 warning emitted
|