Move definition

This commit is contained in:
Wojciech Kozlowski 2025-01-12 09:27:13 +01:00
parent 50dd1e3730
commit 8c55b79777
2 changed files with 6 additions and 6 deletions

View File

@ -71,12 +71,6 @@ impl SqlTransactionSqliteBackend<'_> {
}
}
impl From<serde_json::Error> for Error {
fn from(value: serde_json::Error) -> Self {
Error::SerDeError(value.to_string())
}
}
impl<'conn> ISqlDatabaseBackend<'conn> for SqlDatabaseSqliteBackend {
type Tx = SqlTransactionSqliteBackend<'conn>;

View File

@ -86,6 +86,12 @@ pub enum Error {
ExecError(String),
}
impl From<serde_json::Error> for Error {
fn from(value: serde_json::Error) -> Self {
Error::SerDeError(value.to_string())
}
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {