mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
style: cargo fmt
This commit is contained in:
+1
-2
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user