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

@ -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,