mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 20:52:31 +00:00
Move ical-related stuff to rustical_ical crate
This commit is contained in:
@@ -5,6 +5,9 @@ pub enum Error {
|
||||
|
||||
#[error(transparent)]
|
||||
StoreError(rustical_store::Error),
|
||||
|
||||
#[error(transparent)]
|
||||
IcalError(#[from] rustical_ical::Error),
|
||||
}
|
||||
|
||||
impl From<sqlx::Error> for Error {
|
||||
@@ -27,6 +30,7 @@ impl From<Error> for rustical_store::Error {
|
||||
fn from(value: Error) -> Self {
|
||||
match value {
|
||||
Error::SqlxError(err) => Self::Other(err.into()),
|
||||
Error::IcalError(err) => Self::Other(err.into()),
|
||||
Error::StoreError(err) => err,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user