Update rxml to 0.11.0

This commit is contained in:
Jonas Schäfer 2024-05-23 18:12:09 +02:00
commit 84de007640
6 changed files with 19 additions and 18 deletions

View file

@ -19,7 +19,7 @@ tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
tokio-stream = { version = "0.1", features = [] }
tokio-util = { version = "0.7", features = ["codec"] }
webpki-roots = { version = "0.25", optional = true }
rxml = { version = "0.10.1", features = ["smartstring"] }
rxml = { version = "0.11.0", features = ["compact_str"] }
rand = "^0.8"
syntect = { version = "5", optional = true }
# same repository dependencies

View file

@ -96,7 +96,7 @@ impl Decoder for XMPPCodec {
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error> {
loop {
let token = match self.driver.parse(buf, false) {
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,