From 0c9bfb14c33765329d91ca04a53d9c3aeca538b8 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Tue, 14 Apr 2026 10:57:32 +0200 Subject: [PATCH] fix: format async delete command --- src-tauri/src/commands/delete.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/commands/delete.rs b/src-tauri/src/commands/delete.rs index c75e1a7f..770b2f26 100644 --- a/src-tauri/src/commands/delete.rs +++ b/src-tauri/src/commands/delete.rs @@ -4,7 +4,10 @@ use super::expand_tilde; #[tauri::command] pub async fn batch_delete_notes_async(paths: Vec) -> Result, String> { - let expanded: Vec = paths.iter().map(|path| expand_tilde(path).into_owned()).collect(); + let expanded: Vec = paths + .iter() + .map(|path| expand_tilde(path).into_owned()) + .collect(); tokio::task::spawn_blocking(move || vault::batch_delete_notes(&expanded)) .await .map_err(|e| format!("Task panicked: {e}"))?