mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 14:10:52 +01:00
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.
This commit is contained in:
@ -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<Mutex<Option<Connection>>>);
|
||||
|
||||
Reference in New Issue
Block a user