Commit c2c5485
committed
refactor(submit_package): use
- use `unwrap_or_default()` instead of `.unwrap()`, ideally it should
return a specific error variant, it'd be a breaking change though
and can be added in a follow-up.
- it's only possible to use the internal `minreq::Error` to wrap the
`serde_json::Error`, but not the `reqwest::Error` as it does not
have public constructors.unwrap_or_default instead of .unwrap()
1 parent e0f7985 commit c2c5485
2 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
| 335 | + | |
| 336 | + | |
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
| |||
0 commit comments