Deduplicate StoredUuid wrapper

This commit is contained in:
dbr
2021-09-04 12:53:29 +10:00
parent 477bf9e328
commit 1d62799437
3 changed files with 3 additions and 31 deletions

View File

@@ -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 {