mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
macros, pubsub: Fix build failure introduced in the previous commit.
This commit is contained in:
parent
0aa5f5f60f
commit
2234bb76f2
2 changed files with 2 additions and 2 deletions
|
@ -73,4 +73,4 @@ impl Item {
|
|||
}
|
||||
|
||||
/// This trait should be implemented on any element which can be included as a PubSub payload.
|
||||
pub trait PubSubPayload: crate::TryFrom<crate::Element> + Into<crate::Element> {}
|
||||
pub trait PubSubPayload: ::std::convert::TryFrom<crate::Element> + Into<crate::Element> {}
|
||||
|
|
|
@ -661,7 +661,7 @@ macro_rules! assert_size (
|
|||
// TODO: move that to src/pubsub/mod.rs, once we figure out how to use macros from there.
|
||||
macro_rules! impl_pubsub_item {
|
||||
($item:ident, $ns:ident) => {
|
||||
impl crate::TryFrom<crate::Element> for $item {
|
||||
impl ::std::convert::TryFrom<crate::Element> for $item {
|
||||
type Error = Error;
|
||||
|
||||
fn try_from(elem: crate::Element) -> Result<$item, Error> {
|
||||
|
|
Loading…
Reference in a new issue