From c97afdee1875a17bc54eb5d39972fb3719692a48 Mon Sep 17 00:00:00 2001 From: haex Date: Sun, 2 Nov 2025 15:06:02 +0100 Subject: [PATCH] Restore trash import for move_vault_to_trash functionality The trash crate is needed for the move_vault_to_trash function which moves vault files to the system trash instead of permanently deleting them. Clippy incorrectly marked it as unused because it's only used within a cfg(not(target_os = "android")) block. --- src-tauri/src/database/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/database/mod.rs b/src-tauri/src/database/mod.rs index 70b5a7b..98ec406 100644 --- a/src-tauri/src/database/mod.rs +++ b/src-tauri/src/database/mod.rs @@ -20,6 +20,8 @@ use std::time::UNIX_EPOCH; use std::{fs, sync::Arc}; use tauri::{path::BaseDirectory, AppHandle, Manager, State}; use tauri_plugin_fs::FsExt; +#[cfg(not(target_os = "android"))] +use trash; use ts_rs::TS; pub struct DbConnection(pub Arc>>);