chore: format
This commit is contained in:
parent
d2471b6db7
commit
d114b8ec1d
1 changed files with 4 additions and 3 deletions
|
@ -28,13 +28,14 @@ async fn get_latest_version() -> Result<String, Error> {
|
||||||
version: String,
|
version: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut response = http_client::client()?
|
let mut response = http_client::client()?.get(UPSTREAM_PACKAGE_JSON_URL)?;
|
||||||
.get(UPSTREAM_PACKAGE_JSON_URL)?;
|
|
||||||
|
|
||||||
if !response.status().is_success() {
|
if !response.status().is_success() {
|
||||||
tracing::info!("status: {}", response.status());
|
tracing::info!("status: {}", response.status());
|
||||||
tracing::debug!("response body: {:#?}", response.body());
|
tracing::debug!("response body: {:#?}", response.body());
|
||||||
return Err(Error::HttpErr("Failed to fetch version from Firefish GitLab".to_string()));
|
return Err(Error::HttpErr(
|
||||||
|
"Failed to fetch version from Firefish GitLab".to_string(),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let res_parsed: Response = serde_json::from_str(&response.text()?)?;
|
let res_parsed: Response = serde_json::from_str(&response.text()?)?;
|
||||||
|
|
Loading…
Reference in a new issue