xmpp-parsers: Stop reexporting extra symbols
Let’s continue reexporting jid and minidom, but not their inner pub items, users of this crate can go one level deeper if they need that. Only xso::error::Error is still useful to reexport, as this is part of the public API of all of our parsers.
This commit is contained in:
parent
ab35c234c8
commit
7b66de1166
79 changed files with 123 additions and 118 deletions
|
|
@ -18,7 +18,8 @@ pub use self::event::PubSubEvent;
|
|||
pub use self::owner::PubSubOwner;
|
||||
pub use self::pubsub::PubSub;
|
||||
|
||||
use crate::{Element, Jid};
|
||||
use jid::Jid;
|
||||
use minidom::Element;
|
||||
|
||||
generate_id!(
|
||||
/// The name of a PubSub node, used to identify it on a JID.
|
||||
|
|
@ -105,4 +106,4 @@ impl Item {
|
|||
}
|
||||
|
||||
/// This trait should be implemented on any element which can be included as a PubSub payload.
|
||||
pub trait PubSubPayload: ::std::convert::TryFrom<crate::Element> + Into<crate::Element> {}
|
||||
pub trait PubSubPayload: TryFrom<Element> + Into<Element> {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue