From d114b8ec1d2ecd28fe283c9fb34c37bc2539246d Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 5 May 2024 14:58:56 +0900 Subject: [PATCH] chore: format --- packages/backend-rs/src/misc/latest_version.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/backend-rs/src/misc/latest_version.rs b/packages/backend-rs/src/misc/latest_version.rs index 5d3df0b6a8..cea6901bbe 100644 --- a/packages/backend-rs/src/misc/latest_version.rs +++ b/packages/backend-rs/src/misc/latest_version.rs @@ -28,13 +28,14 @@ async fn get_latest_version() -> Result { version: String, } - let mut response = http_client::client()? - .get(UPSTREAM_PACKAGE_JSON_URL)?; + let mut response = http_client::client()?.get(UPSTREAM_PACKAGE_JSON_URL)?; if !response.status().is_success() { tracing::info!("status: {}", response.status()); 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()?)?;