Skip to content

feat: set Watching activity type (#112) #310

feat: set Watching activity type (#112)

feat: set Watching activity type (#112) #310

Triggered via push October 8, 2024 11:03
Status Failure
Total duration 27s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 3 warnings
match can be simplified with `.unwrap_or_default()`: src/utils.rs#L127
error: match can be simplified with `.unwrap_or_default()` --> src/utils.rs:127:55 | 127 | let json_response: Option<TraktAccessToken> = match response.into_json() { | _______________________________________________________^ 128 | | Ok(body) => body, 129 | | Err(_) => None, 130 | | }; | |_________^ help: replace it with: `response.into_json().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
match can be simplified with `.unwrap_or_default()`: src/utils.rs#L91
error: match can be simplified with `.unwrap_or_default()` --> src/utils.rs:91:55 | 91 | let json_response: Option<TraktAccessToken> = match response.into_json() { | _______________________________________________________^ 92 | | Ok(body) => body, 93 | | Err(_) => None, 94 | | }; | |_________^ help: replace it with: `response.into_json().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
match can be simplified with `.unwrap_or_default()`: src/trakt.rs#L105
error: match can be simplified with `.unwrap_or_default()` --> src/trakt.rs:105:9 | 105 | / match response.into_json() { 106 | | Ok(body) => body, 107 | | Err(_) => None, 108 | | } | |_________^ help: replace it with: `response.into_json().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `-D clippy::manual-unwrap-or-default` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::manual_unwrap_or_default)]`
Clippy
Clippy had exited with the 101 exit code
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: scherermichael-oss/[email protected], 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 following actions use a deprecated Node.js version and will be forced to run on node20: scherermichael-oss/[email protected], actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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/