aboutsummaryrefslogtreecommitdiff
path: root/src/dav/xml.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-07 15:45:05 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-07 15:45:05 +0100
commitbb9cb386b65834c44cae86bd100f800883022062 (patch)
tree06c1ef534bab0fa967acf66ca32f313e7ce990ff /src/dav/xml.rs
parente52ce4a61dc8bffabb8e4c5152c973d739e2b499 (diff)
downloadaerogramme-bb9cb386b65834c44cae86bd100f800883022062.tar.gz
aerogramme-bb9cb386b65834c44cae86bd100f800883022062.zip
add a fuzzer
Diffstat (limited to 'src/dav/xml.rs')
-rw-r--r--src/dav/xml.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dav/xml.rs b/src/dav/xml.rs
index d34322a..02263fd 100644
--- a/src/dav/xml.rs
+++ b/src/dav/xml.rs
@@ -12,7 +12,7 @@ pub const CARD_URN: &[u8] = b"urn:ietf:params:xml:ns:carddav";
// Async traits
pub trait IWrite = AsyncWrite + Unpin;
-pub trait IRead = AsyncBufRead + Unpin + 'static;
+pub trait IRead = AsyncBufRead + Unpin;
// Serialization/Deserialization traits
pub trait QWrite {
@@ -78,7 +78,7 @@ impl<T: IRead> Reader<T> {
/// skip a node at current level
/// I would like to make this one private but not ready
pub async fn skip(&mut self) -> Result<Event<'static>, ParsingError> {
- println!("skipping inside node {:?}", self.parents.last());
+ //println!("skipping inside node {:?}", self.parents.last());
match &self.cur {
Event::Start(b) => {
let _span = self.rdr.read_to_end_into_async(b.to_end().name(), &mut self.buf).await?;
@@ -235,7 +235,7 @@ impl<T: IRead> Reader<T> {
_ => return Err(ParsingError::Recoverable),
};
- println!("open tag {:?}", evt);
+ //println!("open tag {:?}", evt);
self.parents.push(evt.clone());
Ok(evt)
}
@@ -250,7 +250,7 @@ impl<T: IRead> Reader<T> {
// find stop tag
pub async fn close(&mut self) -> Result<Event<'static>, ParsingError> {
- println!("close tag {:?}", self.parents.last());
+ //println!("close tag {:?}", self.parents.last());
// Handle the empty case
if !self.parent_has_child() {