1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-07-03 11:50:35 +02:00

lib: Stop reexporting TryFrom and TryInto.

They are available in std::convert nowadays, and should be imported from
there.
This commit is contained in:
Emmanuel Gil Peyrot 2019-07-17 22:26:41 +02:00
parent a7dbaee309
commit 0aa5f5f60f
2 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,9 @@ Version NEXT:
DATE Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
* New parsers/serialisers:
- Message Carbons (XEP-0280)
* Breaking changes:
- Stop reexporting TryFrom and TryInto, they are available in
std::convert nowadays.
* Improvements:
- New DOAP file for a machine-readable description of the features.

View File

@ -1,6 +1,6 @@
//! 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
//! element parsed correctly, `Err(error::Error)` otherwise.
//!
@ -12,7 +12,6 @@
//! [`Element`], using either `From` or `Into<Element>`, which give you what
//! you want to be sending on the wire.
//!
//! [`TryFrom<Element>`]: ../try_from/trait.TryFrom.html
//! [`Element`]: ../minidom/element/struct.Element.html
// Copyright (c) 2017-2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
@ -25,8 +24,7 @@
#![deny(missing_docs)]
pub use minidom::Element;
pub use jid::{Jid, BareJid, FullJid, JidParseError};
pub use std::convert::{TryFrom, TryInto};
pub use jid::{BareJid, FullJid, Jid, JidParseError};
pub use crate::util::error::Error;
/// XML namespace definitions used through XMPP.