fix: correct destructuring of RusqliteError variant
Co-authored-by: aider (openai/andrew/openrouter/google/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -30,7 +30,7 @@ pub enum CoreError {
|
|||||||
impl From<rusqlite_migration::Error> for CoreError {
|
impl From<rusqlite_migration::Error> for CoreError {
|
||||||
fn from(err: rusqlite_migration::Error) -> Self {
|
fn from(err: rusqlite_migration::Error) -> Self {
|
||||||
match err {
|
match err {
|
||||||
rusqlite_migration::Error::RusqliteError(e) => CoreError::Database(e),
|
rusqlite_migration::Error::RusqliteError { err: e, .. } => CoreError::Database(e),
|
||||||
e => CoreError::Other(e.into()),
|
e => CoreError::Other(e.into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user