style: cargo fmt

This commit is contained in:
l0ng-ai
2026-07-07 16:16:35 +08:00
parent 3900160b27
commit 47e47897ed
2 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -277,8 +277,7 @@ async fn fetch_latest_version() -> Result<String> {
.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)
}
+4 -1
View File
@@ -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;