Skip to content

build: update dependencies #334

build: update dependencies

build: update dependencies #334

GitHub Actions / clippy failed Oct 9, 2024 in 0s

clippy

3 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 3
Warning 0
Note 0
Help 0

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 130 in src/utils.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

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

Check failure on line 94 in src/utils.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

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

Check failure on line 108 in src/trakt.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

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)]`