mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-14 16:37:30 +02:00
refactor: api cleanup
This commit is contained in:
@@ -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