fix: format async delete command

This commit is contained in:
lucaronin
2026-04-14 10:57:32 +02:00
parent 48d2246f0b
commit 0c9bfb14c3

View File

@@ -4,7 +4,10 @@ use super::expand_tilde;
#[tauri::command]
pub async fn batch_delete_notes_async(paths: Vec<String>) -> Result<Vec<String>, String> {
let expanded: Vec<String> = paths.iter().map(|path| expand_tilde(path).into_owned()).collect();
let expanded: Vec<String> = 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}"))?