Update to rxml 0.12.0
This commit is contained in:
parent
cc3400bac7
commit
f77c21f0fc
9 changed files with 51 additions and 43 deletions
|
|
@ -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.26", optional = true }
|
||||
rxml = { version = "0.11.1", features = ["compact_str"] }
|
||||
rxml = { version = "0.12.0", features = ["compact_str"] }
|
||||
rand = "0.8"
|
||||
syntect = { version = "5", optional = true }
|
||||
# same repository dependencies
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue