Skip to content

Commit

Permalink
style(backend): fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Jul 27, 2024
1 parent 9f6a506 commit e7fcc48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions gui/backend/src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 1 addition & 3 deletions gui/backend/src/cmd/supports/system_tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e7fcc48

Please sign in to comment.