Deduplicate StoredUuid wrapper
This commit is contained in:
@@ -12,7 +12,7 @@ use uuid::Uuid;
|
||||
mod config;
|
||||
mod inmemory;
|
||||
mod operation;
|
||||
mod sqlite;
|
||||
pub(crate) mod sqlite;
|
||||
|
||||
pub use config::StorageConfig;
|
||||
pub use inmemory::InMemoryStorage;
|
||||
|
||||
@@ -12,7 +12,7 @@ enum SqliteError {
|
||||
}
|
||||
|
||||
/// Newtype to allow implementing `FromSql` for foreign `uuid::Uuid`
|
||||
struct StoredUuid(Uuid);
|
||||
pub(crate) struct StoredUuid(pub(crate) Uuid);
|
||||
|
||||
/// Conversion from Uuid stored as a string (rusqlite's uuid feature stores as binary blob)
|
||||
impl FromSql for StoredUuid {
|
||||
|
||||
Reference in New Issue
Block a user