chore: update lockfile #332
Annotations
3 errors
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)]`
|