From 47e47897eda94e3347e5783dfabacce021679152 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:16:35 +0800 Subject: [PATCH] style: cargo fmt --- src/core/update.rs | 3 +-- src/main.rs | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/update.rs b/src/core/update.rs index 6f31d732..51fe4c4d 100644 --- a/src/core/update.rs +++ b/src/core/update.rs @@ -277,8 +277,7 @@ async fn fetch_latest_version() -> Result { .await .context("reading response body")?; - let release: LatestRelease = - serde_json::from_slice(&body).context("parsing release JSON")?; + let release: LatestRelease = serde_json::from_slice(&body).context("parsing release JSON")?; Ok(release.tag_name) } diff --git a/src/main.rs b/src/main.rs index ab3ea67c..b7de21ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,9 @@ // Hide the console window on Windows release builds; keep it in debug builds // so println!/eprintln! output remains visible while developing. -#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")] +#![cfg_attr( + all(target_os = "windows", not(debug_assertions)), + windows_subsystem = "windows" +)] mod core; mod daemon;