Migrate mkcol/mkcalendar to rustical_xml

This commit is contained in:
Lennart
2024-12-23 23:13:18 +01:00
parent 72844aa94e
commit 92b7be5591
6 changed files with 100 additions and 46 deletions

View File

@@ -19,10 +19,7 @@ pub enum Error {
DavError(#[from] rustical_dav::Error),
#[error(transparent)]
NewXmlDecodeError(#[from] rustical_xml::XmlDeError),
#[error(transparent)]
XmlDecodeError(#[from] quick_xml::DeError),
XmlDecodeError(#[from] rustical_xml::XmlDeError),
#[error(transparent)]
Other(#[from] anyhow::Error),
@@ -38,7 +35,6 @@ impl actix_web::ResponseError for Error {
},
Error::DavError(err) => err.status_code(),
Error::Unauthorized => StatusCode::UNAUTHORIZED,
Error::NewXmlDecodeError(_) => StatusCode::BAD_REQUEST,
Error::XmlDecodeError(_) => StatusCode::BAD_REQUEST,
Error::NotImplemented => StatusCode::INTERNAL_SERVER_ERROR,
Error::Other(_) => StatusCode::INTERNAL_SERVER_ERROR,