fix report
This commit is contained in:
parent
1c9d2eab69
commit
10dac17ce1
1 changed files with 2 additions and 7 deletions
|
@ -68,9 +68,7 @@ impl<E: dav::Extension> QRead<ReportName<E>> for ReportName<E> {
|
||||||
|
|
||||||
impl<E: dav::Extension> QRead<Report<E>> for Report<E> {
|
impl<E: dav::Extension> QRead<Report<E>> for Report<E> {
|
||||||
async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> {
|
async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> {
|
||||||
xml.open(DAV_URN, "report").await?;
|
if xml.maybe_open(DAV_URN, "version-tree").await?.is_some() {
|
||||||
|
|
||||||
let final_result = if xml.maybe_open(DAV_URN, "version-tree").await?.is_some() {
|
|
||||||
xml.close().await?;
|
xml.close().await?;
|
||||||
tracing::warn!("version-tree is not implemented, skipping");
|
tracing::warn!("version-tree is not implemented, skipping");
|
||||||
Ok(Report::VersionTree)
|
Ok(Report::VersionTree)
|
||||||
|
@ -80,10 +78,7 @@ impl<E: dav::Extension> QRead<Report<E>> for Report<E> {
|
||||||
Ok(Report::ExpandProperty)
|
Ok(Report::ExpandProperty)
|
||||||
} else {
|
} else {
|
||||||
E::ReportType::qread(xml).await.map(Report::Extension)
|
E::ReportType::qread(xml).await.map(Report::Extension)
|
||||||
};
|
}
|
||||||
|
|
||||||
xml.close().await?;
|
|
||||||
final_result
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue