refactor(macro): used $crate for better interop

This commit is contained in:
Yandrik 2023-03-15 20:04:27 +01:00
parent 15b9db4c5d
commit a071ab05b2
3 changed files with 5 additions and 5 deletions

View file

@ -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.