fix: gate init_in_memory as test-only to resolve clippy dead_code warning
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5b81361190
commit
a626666275
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ pub fn init(db_path: &Path) -> Result<Connection> {
|
|||
Ok(conn)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn init_in_memory() -> Result<Connection> {
|
||||
let conn = Connection::open_in_memory()?;
|
||||
configure(&conn)?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue