aboutsummaryrefslogtreecommitdiff
path: root/rtic-sync
diff options
context:
space:
mode:
authorYandrik <me@yandrik.dev>2023-03-15 20:04:27 +0100
committerYandrik <me@yandrik.dev>2023-03-15 20:04:27 +0100
commita071ab05b2bb443672c0c21386522d5ebcbcb63a (patch)
tree573cc7ed723f2eb0e252b64486307d83bd7a2e42 /rtic-sync
parent15b9db4c5d60f8cc7c192261ad01b1ebf74faa83 (diff)
refactor(macro): used $crate for better interop
Diffstat (limited to 'rtic-sync')
-rw-r--r--rtic-sync/src/channel.rs2
1 files changed, 1 insertions, 1 deletions
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<T, const N: usize> Channel<T, N> {
#[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.