mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
refactor(macro): used $crate for better interop
This commit is contained in:
parent
15b9db4c5d
commit
a071ab05b2
3 changed files with 5 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue