From a071ab05b2bb443672c0c21386522d5ebcbcb63a Mon Sep 17 00:00:00 2001 From: Yandrik Date: Wed, 15 Mar 2023 20:04:27 +0100 Subject: refactor(macro): used $crate for better interop --- rtic-sync/src/channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtic-sync/src') diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index ee5ea9c..d0670c2 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -103,7 +103,7 @@ impl Channel { #[macro_export] macro_rules! make_channel { ($type:path, $size:expr) => {{ - static mut CHANNEL: ::rtic_sync::channel::Channel<$type, $size> = ::rtic_sync::channel::Channel::new(); + static mut CHANNEL: $crate::channel::Channel<$type, $size> = $crate::channel::Channel::new(); // SAFETY: This is safe as we hide the static mut from others to access it. // Only this point is where the mutable access happens. -- cgit v1.2.3