Skip to content

Commit 84214d5

Browse files
committed
zephyr: sync: Move use into module
These belong within the module. Signed-off-by: David Brown <[email protected]>
1 parent dc333f9 commit 84214d5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

zephyr/src/sync.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ pub mod atomic {
2525
pub use portable_atomic::*;
2626
}
2727

28-
#[cfg(CONFIG_RUST_ALLOC)]
29-
pub use portable_atomic_util::Arc;
30-
#[cfg(CONFIG_RUST_ALLOC)]
31-
pub use portable_atomic_util::Weak;
32-
3328
#[cfg(CONFIG_RUST_ALLOC)]
3429
mod pinweak {
3530
use core::pin::Pin;
31+
pub use portable_atomic_util::Arc;
32+
pub use portable_atomic_util::Weak;
3633

3734
/// Safe Pinned Weak references.
3835
///

0 commit comments

Comments
 (0)