8d8f3fea37
The previous code didn't build with 1.78: ``` error[E0716]: temporary value dropped while borrowed --> parsers/src/data_forms/validate.rs:394:46 | 380 | let value = match self { | ----- borrow later stored here ... 394 | Datatype::UserDefined(value) => &format!("x:{value}"), | ^^^^^^^^^^^^^^^^^^^- | | | | | temporary value is freed at the end of this statement | creates a temporary value which is freed while still in use | = note: consider using a `let` binding to create a longer lived value = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0716]: temporary value dropped while borrowed --> parsers/src/data_forms/validate.rs:395:51 | 380 | let value = match self { | ----- borrow later stored here ... 395 | Datatype::Other { prefix, value } => &format!("{prefix}:{value}"), | ^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | | | temporary value is freed at the end of this statement | creates a temporary value which is freed while still in use | = note: consider using a `let` binding to create a longer lived value = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0716`. ``` This seems like a silly reason to pull up the compiler version requirements, so I fixed it with a trivial modification. |
||
---|---|---|
.. | ||
examples | ||
src | ||
Cargo.toml | ||
ChangeLog | ||
doap.xml | ||
LICENSE | ||
README.md |
xmpp-parsers
What’s this?
A crate which provides parsers and serialisers for most XMPP elements, to avoid having to deal with XML manually. It validates its inputs by default, and aims at providing useful errors when a particular XML element was invalid.
What license is it under?
MPL-2.0 or later, see the LICENSE
file.