aboutsummaryrefslogtreecommitdiff
path: root/src/dav/realization.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-06 23:24:54 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-06 23:24:54 +0100
commit5e71a7d84804a86d049d3e0a614c35bedf7cb636 (patch)
tree12e05e76a0119c55645de683bec2fd03ab7bed40 /src/dav/realization.rs
parent67e5953c244674c84adf4bd03a0cab1530f6507b (diff)
downloadaerogramme-5e71a7d84804a86d049d3e0a614c35bedf7cb636.tar.gz
aerogramme-5e71a7d84804a86d049d3e0a614c35bedf7cb636.zip
Rewrote the whole decoder
Diffstat (limited to 'src/dav/realization.rs')
-rw-r--r--src/dav/realization.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dav/realization.rs b/src/dav/realization.rs
index 1898173..33a556e 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(xml: &mut xml::Reader<impl xml::IRead>) -> Result<Option<Self>, error::ParsingError> {
- Ok(None)
+ async fn qread(xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ Err(error::ParsingError::Recoverable)
}
}
impl xml::QWrite for Disabled {