From 01bb588a05d24ee961972856233e76abdf7ae111 Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 5 Apr 2020 13:17:00 -0500 Subject: [PATCH] use fully qualified path to SendQueue --- src/macros.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index d87a707..5cccbc5 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -115,9 +115,11 @@ macro_rules! try_send { match $e { Ok(r) => r, Err(_e) => { - return SendQueue(vec![($i, std::fmt::format(format_args!($($arg)*)), true)].into()); - } + return $crate::queue::SendQueue( + vec![($i, std::fmt::format(format_args!($($arg)*)), true)].into() + ); } + } }; } @@ -128,9 +130,11 @@ macro_rules! option_send { match $e { Some(r) => r, None => { - return SendQueue(vec![($i, std::fmt::format(format_args!($($arg)*)), true)].into()); - } + return $crate::queue::SendQueue( + vec![($i, std::fmt::format(format_args!($($arg)*)), true)].into() + ); } + } }; } @@ -146,7 +150,7 @@ macro_rules! try_option_send_error { file!(), line!() ); - return SendQueue::error($i); + return $crate::queue::SendQueue::error($i); } Err(e) => { log::error!( @@ -155,7 +159,7 @@ macro_rules! try_option_send_error { line!(), e ); - return SendQueue::error($i); + return $crate::queue::SendQueue::error($i); } } };