Move definition
This commit is contained in:
parent
50dd1e3730
commit
8c55b79777
@ -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>;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user