From a62666627580aa75b0b7926daea8789a8078a51d Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Mon, 13 Apr 2026 10:07:40 +0200 Subject: [PATCH] fix: gate init_in_memory as test-only to resolve clippy dead_code warning Co-Authored-By: Claude Sonnet 4.6 --- src-tauri/src/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs index d61f705..89c8998 100644 --- a/src-tauri/src/db.rs +++ b/src-tauri/src/db.rs @@ -10,6 +10,7 @@ pub fn init(db_path: &Path) -> Result { Ok(conn) } +#[cfg(test)] pub fn init_in_memory() -> Result { let conn = Connection::open_in_memory()?; configure(&conn)?;