From 2234bb76f21540062f3cbc4bce24da7f58e91e94 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 17 Jul 2019 22:30:49 +0200 Subject: [PATCH] macros, pubsub: Fix build failure introduced in the previous commit. --- src/pubsub/mod.rs | 2 +- src/util/macros.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubsub/mod.rs b/src/pubsub/mod.rs index cde7e775..4b998b9f 100644 --- a/src/pubsub/mod.rs +++ b/src/pubsub/mod.rs @@ -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 + Into {} +pub trait PubSubPayload: ::std::convert::TryFrom + Into {} diff --git a/src/util/macros.rs b/src/util/macros.rs index 010cde52..5b54cf65 100644 --- a/src/util/macros.rs +++ b/src/util/macros.rs @@ -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 for $item { + impl ::std::convert::TryFrom for $item { type Error = Error; fn try_from(elem: crate::Element) -> Result<$item, Error> {