aboutsummaryrefslogtreecommitdiff
path: root/aero-dav/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-05-28 12:43:20 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-05-28 12:43:20 +0200
commit10dac17ce173e584fc857f717f645c05b7cd42ac (patch)
tree5285396e7fddbbfae0fa78aff1d3bf3e65e0d450 /aero-dav/src
parent1c9d2eab6976993c85eaa3e8eb4f1c433258fd16 (diff)
downloadaerogramme-10dac17ce173e584fc857f717f645c05b7cd42ac.tar.gz
aerogramme-10dac17ce173e584fc857f717f645c05b7cd42ac.zip
fix report
Diffstat (limited to 'aero-dav/src')
-rw-r--r--aero-dav/src/versioningdecoder.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/aero-dav/src/versioningdecoder.rs b/aero-dav/src/versioningdecoder.rs
index 9e58d8c..c28c0d5 100644
--- a/aero-dav/src/versioningdecoder.rs
+++ b/aero-dav/src/versioningdecoder.rs
@@ -68,9 +68,7 @@ impl<E: dav::Extension> QRead<ReportName<E>> for ReportName<E> {
impl<E: dav::Extension> QRead<Report<E>> for Report<E> {
async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> {
- xml.open(DAV_URN, "report").await?;
-
- let final_result = if xml.maybe_open(DAV_URN, "version-tree").await?.is_some() {
+ if xml.maybe_open(DAV_URN, "version-tree").await?.is_some() {
xml.close().await?;
tracing::warn!("version-tree is not implemented, skipping");
Ok(Report::VersionTree)
@@ -80,10 +78,7 @@ impl<E: dav::Extension> QRead<Report<E>> for Report<E> {
Ok(Report::ExpandProperty)
} else {
E::ReportType::qread(xml).await.map(Report::Extension)
- };
-
- xml.close().await?;
- final_result
+ }
}
}