mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-21 23:01:26 +02:00
refactor: api cleanup
This commit is contained in:
1 parent
53db00a85a
commit
ae8afbb158
27 files changed
+604
-531
No files matched your search
@@ -278,7 +278,7 @@ impl ApiClient {
|
||||
{
|
||||
Ok(response) => {
|
||||
if !response.status().is_success() {
|
||||
last_err = Some(format!("HTTP {}", response.status()));
|
||||
last_err = Some(format!("HTTP {}", response.status().as_u16()));
|
||||
} else {
|
||||
match response.json::<WayfernVersionInfo>().await {
|
||||
Ok(info) => {
|
||||
|
||||
Reference in new issue
Block a user