aboutsummaryrefslogtreecommitdiff
path: root/src/main/rust
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@submelon.dev>2026-02-26 22:06:10 +0000
committerKevin Hoerr <kjhoerr@submelon.dev>2026-02-26 22:06:10 +0000
commit5d78d005478def6da994af5545a4aae681b93d00 (patch)
tree1bc1c8fa3d4fc285f2c47701f39e438af4345672 /src/main/rust
parent47ea7901b73085ead704ec2bd45402ae0c4ce5a2 (diff)
downloadequity-tracker-5d78d005478def6da994af5545a4aae681b93d00.tar.gz
equity-tracker-5d78d005478def6da994af5545a4aae681b93d00.tar.bz2
equity-tracker-5d78d005478def6da994af5545a4aae681b93d00.zip
style/mod.rs: Clean up sqlite error type
Diffstat (limited to 'src/main/rust')
-rw-r--r--src/main/rust/store/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/rust/store/mod.rs b/src/main/rust/store/mod.rs
index 7c7d9ce..2408901 100644
--- a/src/main/rust/store/mod.rs
+++ b/src/main/rust/store/mod.rs
@@ -2,7 +2,6 @@ mod sqlite;
use std::num::TryFromIntError;
-use ::sqlite::Error as SQLiteLibraryError;
use miette::{Diagnostic, Result};
use thiserror::Error;
@@ -12,8 +11,8 @@ pub enum Context {
#[derive(Debug, Diagnostic, Error)]
pub enum ContextError {
- #[error("SQLite error")]
- SQLiteError(#[from] SQLiteLibraryError),
+ #[error("Data storage error")]
+ DataError(#[from] ::sqlite::Error),
#[error("Int conversion error")]
ConversionError(#[from] TryFromIntError),
}