Update xbox_security_token with less general error responses #35
Annotations
3 errors, 1 warning, and 1 notice
Cargo clippy:
src/lib.rs#L235
error[E0382]: borrow of moved value: `response`
--> src/lib.rs:235:25
|
205 | let response = self
| -------- move occurs because `response` has type `reqwest::Response`, which does not implement the `Copy` trait
...
219 | let xbox_security_token_err_resp_res = response.json().await;
| ------ `response` moved due to this method call
...
235 | response
| ^^^^^^^^ value borrowed here after move
|
note: `reqwest::Response::json` takes ownership of the receiver `self`, which moves `response`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.3/src/async_impl/response.rs:265:44
|
265 | pub async fn json<T: DeserializeOwned>(self) -> crate::Result<T> {
| ^^^^
|
Cargo clippy
error: aborting due to 1 previous error
|
Cargo clippy
JsValue(Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
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))
|
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
For more information about this error, try `rustc --explain E0382`.
|
Loading