aboutsummaryrefslogtreecommitdiff
path: root/src/dav/realization.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-05 19:06:04 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-05 19:06:04 +0100
commit2dd6deae545690cdcc00ca1123d1818598497fed (patch)
tree715e4ee5f8f283581a78c57e3581b79f56a983f1 /src/dav/realization.rs
parent1aafd752ca00ddda5340aacfb0ed291b803845da (diff)
downloadaerogramme-2dd6deae545690cdcc00ca1123d1818598497fed.tar.gz
aerogramme-2dd6deae545690cdcc00ca1123d1818598497fed.zip
Re-enable + enhance DAV decode tests
Diffstat (limited to 'src/dav/realization.rs')
-rw-r--r--src/dav/realization.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dav/realization.rs b/src/dav/realization.rs
index a02de94..1898173 100644
--- a/src/dav/realization.rs
+++ b/src/dav/realization.rs
@@ -6,8 +6,8 @@ use super::error;
#[derive(Debug, PartialEq)]
pub struct Disabled(());
impl xml::QRead<Disabled> for Disabled {
- async fn qread(&self, xml: &mut xml::Reader<impl xml::IRead>) -> Result<Option<Self>, error::ParsingError> {
- unreachable!();
+ async fn qread(xml: &mut xml::Reader<impl xml::IRead>) -> Result<Option<Self>, error::ParsingError> {
+ Ok(None)
}
}
impl xml::QWrite for Disabled {
@@ -20,6 +20,7 @@ impl xml::QWrite for Disabled {
///
/// Any extension is kooh is disabled through an object we can't build
/// due to a private inner element.
+#[derive(Debug, PartialEq)]
pub struct Core {}
impl dav::Extension for Core {
type Error = Disabled;
@@ -29,6 +30,7 @@ impl dav::Extension for Core {
}
// WebDAV with the base Calendar implementation (RFC4791)
+#[derive(Debug, PartialEq)]
pub struct Calendar {}
impl dav::Extension for Calendar
{