Update to rxml 0.12.0

This commit is contained in:
Jonas Schäfer 2024-08-09 14:48:40 +02:00
commit f77c21f0fc
9 changed files with 51 additions and 43 deletions

View file

@ -99,8 +99,10 @@ impl Decoder for XmppCodec {
let token = match self.driver.parse_buf(buf, false) {
Ok(Some(token)) => token,
Ok(None) => break,
Err(rxml::Error::IO(e)) if e.kind() == std::io::ErrorKind::WouldBlock => break,
Err(e) => return Err(minidom::Error::from(e).into()),
Err(rxml::error::EndOrError::NeedMoreData) => break,
Err(rxml::error::EndOrError::Error(e)) => {
return Err(minidom::Error::from(e).into())
}
};
let had_stream_root = self.stanza_builder.depth() > 0;