diff --git a/src/external/database/sql/backend.rs b/src/external/database/sql/backend.rs index 9051ae9..9c7de69 100644 --- a/src/external/database/sql/backend.rs +++ b/src/external/database/sql/backend.rs @@ -71,12 +71,6 @@ impl SqlTransactionSqliteBackend<'_> { } } -impl From for Error { - fn from(value: serde_json::Error) -> Self { - Error::SerDeError(value.to_string()) - } -} - impl<'conn> ISqlDatabaseBackend<'conn> for SqlDatabaseSqliteBackend { type Tx = SqlTransactionSqliteBackend<'conn>; diff --git a/src/external/database/sql/mod.rs b/src/external/database/sql/mod.rs index 0cdfeae..697cd63 100644 --- a/src/external/database/sql/mod.rs +++ b/src/external/database/sql/mod.rs @@ -86,6 +86,12 @@ pub enum Error { ExecError(String), } +impl From 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 {