From e7fcc487cd3464bf3d384a9012fbdffb0b5c75a8 Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:01:04 +0900 Subject: [PATCH] style(backend): fix format --- Cargo.lock | 6 +++--- gui/backend/src/cmd/mod.rs | 4 +--- gui/backend/src/cmd/supports/system_tray.rs | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4f856fb..0d74bb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -334,7 +334,7 @@ dependencies = [ [[package]] name = "bluetooth" -version = "0.3.0" +version = "0.3.1" dependencies = [ "chrono", "num-derive", @@ -352,7 +352,7 @@ dependencies = [ [[package]] name = "bluetooth_battery_monitor" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "bluetooth", @@ -3683,7 +3683,7 @@ dependencies = [ [[package]] name = "timer" -version = "0.3.0" +version = "0.3.1" dependencies = [ "dashmap", "once_cell", diff --git a/gui/backend/src/cmd/mod.rs b/gui/backend/src/cmd/mod.rs index 222e003..c60726e 100644 --- a/gui/backend/src/cmd/mod.rs +++ b/gui/backend/src/cmd/mod.rs @@ -17,9 +17,7 @@ pub(crate) async fn update_tray_icon( } #[tauri::command] -pub(crate) async fn set_default_tray_icon( - app: AppHandle, -) -> Result<(), String> { +pub(crate) async fn set_default_tray_icon(app: AppHandle) -> Result<(), String> { err_log!(default_tray(&app).await) } diff --git a/gui/backend/src/cmd/supports/system_tray.rs b/gui/backend/src/cmd/supports/system_tray.rs index 7fe1b5f..d9eb57e 100644 --- a/gui/backend/src/cmd/supports/system_tray.rs +++ b/gui/backend/src/cmd/supports/system_tray.rs @@ -27,9 +27,7 @@ pub async fn update_tray( } /// Update application tray icon & name -pub async fn default_tray( - app: &tauri::AppHandle, -) -> tauri::Result<()> { +pub async fn default_tray(app: &tauri::AppHandle) -> tauri::Result<()> { let battery_icon = include_bytes!("../../../icons/icon.png").as_slice(); let tray_handle = app.tray_handle();