diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-06 10:12:02 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-06 10:12:02 +0100 |
commit | ba32a0d4a6810e4bf9d18f14086597c20212bbcb (patch) | |
tree | e46fc61d85228d3ffe1b0295fbffaca618b07a2a /src/dav/xml.rs | |
parent | 2dd6deae545690cdcc00ca1123d1818598497fed (diff) | |
download | aerogramme-ba32a0d4a6810e4bf9d18f14086597c20212bbcb.tar.gz aerogramme-ba32a0d4a6810e4bf9d18f14086597c20212bbcb.zip |
decode errors
Diffstat (limited to 'src/dav/xml.rs')
-rw-r--r-- | src/dav/xml.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dav/xml.rs b/src/dav/xml.rs index 5ebda02..1cce86a 100644 --- a/src/dav/xml.rs +++ b/src/dav/xml.rs @@ -65,6 +65,7 @@ impl<T: IRead> Reader<T> { /// skip tag. Can't skip end, can't skip eof. pub async fn skip(&mut self) -> Result<Event<'static>, ParsingError> { + println!("skip on {:?}", &self.evt); match &self.evt { Event::Start(b) => { let _span = self.rdr.read_to_end_into_async(b.to_end().name(), &mut self.buf).await?; @@ -107,6 +108,7 @@ impl<T: IRead> Reader<T> { /// find start tag pub async fn tag_start(&mut self, ns: &[u8], key: &str) -> Result<Event<'static>, ParsingError> { + println!("search start tag {}", key); loop { match self.peek() { Event::Start(b) if self.is_tag(ns, key) => break, @@ -118,6 +120,7 @@ impl<T: IRead> Reader<T> { // find stop tag pub async fn tag_stop(&mut self, ns: &[u8], key: &str) -> Result<Event<'static>, ParsingError> { + println!("search stop tag {}", key); loop { match self.peek() { Event::End(b) if self.is_tag(ns, key) => break, |