lib: Stop reexporting TryFrom and TryInto.
They are available in std::convert nowadays, and should be imported from there.
This commit is contained in:
parent
a7dbaee309
commit
0aa5f5f60f
2 changed files with 5 additions and 4 deletions
|
|
@ -2,6 +2,9 @@ Version NEXT:
|
||||||
DATE Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
DATE Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
||||||
* New parsers/serialisers:
|
* New parsers/serialisers:
|
||||||
- Message Carbons (XEP-0280)
|
- Message Carbons (XEP-0280)
|
||||||
|
* Breaking changes:
|
||||||
|
- Stop reexporting TryFrom and TryInto, they are available in
|
||||||
|
std::convert nowadays.
|
||||||
* Improvements:
|
* Improvements:
|
||||||
- New DOAP file for a machine-readable description of the features.
|
- New DOAP file for a machine-readable description of the features.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
//! A crate parsing common XMPP elements into Rust structures.
|
//! A crate parsing common XMPP elements into Rust structures.
|
||||||
//!
|
//!
|
||||||
//! Each module implements the [`TryFrom<Element>`] trait, which takes a
|
//! Each module implements the `TryFrom<Element>` trait, which takes a
|
||||||
//! minidom [`Element`] and returns a `Result` whose value is `Ok` if the
|
//! minidom [`Element`] and returns a `Result` whose value is `Ok` if the
|
||||||
//! element parsed correctly, `Err(error::Error)` otherwise.
|
//! element parsed correctly, `Err(error::Error)` otherwise.
|
||||||
//!
|
//!
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
//! [`Element`], using either `From` or `Into<Element>`, which give you what
|
//! [`Element`], using either `From` or `Into<Element>`, which give you what
|
||||||
//! you want to be sending on the wire.
|
//! you want to be sending on the wire.
|
||||||
//!
|
//!
|
||||||
//! [`TryFrom<Element>`]: ../try_from/trait.TryFrom.html
|
|
||||||
//! [`Element`]: ../minidom/element/struct.Element.html
|
//! [`Element`]: ../minidom/element/struct.Element.html
|
||||||
|
|
||||||
// Copyright (c) 2017-2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
// Copyright (c) 2017-2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
||||||
|
|
@ -25,8 +24,7 @@
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
pub use minidom::Element;
|
pub use minidom::Element;
|
||||||
pub use jid::{Jid, BareJid, FullJid, JidParseError};
|
pub use jid::{BareJid, FullJid, Jid, JidParseError};
|
||||||
pub use std::convert::{TryFrom, TryInto};
|
|
||||||
pub use crate::util::error::Error;
|
pub use crate::util::error::Error;
|
||||||
|
|
||||||
/// XML namespace definitions used through XMPP.
|
/// XML namespace definitions used through XMPP.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue