From b59ea630284d792d7b959e2b64e818e22b038f21 Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Thu, 26 Feb 2026 22:11:25 +0000 Subject: SQLite -> SQLiteStore --- src/main/rust/store/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main/rust/store/mod.rs') diff --git a/src/main/rust/store/mod.rs b/src/main/rust/store/mod.rs index 2408901..2cce3e9 100644 --- a/src/main/rust/store/mod.rs +++ b/src/main/rust/store/mod.rs @@ -1,12 +1,11 @@ mod sqlite; -use std::num::TryFromIntError; - +use crate::store::sqlite::SQLiteStore; use miette::{Diagnostic, Result}; use thiserror::Error; pub enum Context { - SQLite(sqlite::SQLite), + SQLite(SQLiteStore), } #[derive(Debug, Diagnostic, Error)] @@ -14,12 +13,12 @@ pub enum ContextError { #[error("Data storage error")] DataError(#[from] ::sqlite::Error), #[error("Int conversion error")] - ConversionError(#[from] TryFromIntError), + ConversionError(#[from] std::num::TryFromIntError), } impl Default for Context { fn default() -> Self { - Context::SQLite(sqlite::SQLite::default()) + Context::SQLite(SQLiteStore::default()) } } -- cgit v1.3