diff options
Diffstat (limited to 'src/main/rust/store/mod.rs')
| -rw-r--r-- | src/main/rust/store/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
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()) } } |
