Move ical-related stuff to rustical_ical crate

This commit is contained in:
Lennart
2025-06-03 18:15:26 +02:00
parent 5a6ffd3c19
commit 7f3ce01c2b
35 changed files with 121 additions and 68 deletions

View File

@@ -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,
}
}