Fix Android build by unconditionally importing ts_rs::TS

When cargo clippy removed the unused trash import, the cfg attribute
accidentally applied to the ts_rs::TS import below it, making it
conditional for Android. This caused the Android build to fail with
"cannot find derive macro TS in this scope".

Moved the TS import out of the cfg block to make it available for all
platforms including Android.
This commit is contained in:
2025-11-02 15:02:45 +01:00
parent a52e1b43fa
commit 65d2770df3

View File

@ -20,7 +20,6 @@ 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 ts_rs::TS;
pub struct DbConnection(pub Arc<Mutex<Option<Connection>>>);