aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@grepit.se>2022-02-18 15:11:55 +0100
committerHenrik Tjäder <henrik@grepit.se>2022-02-18 18:42:19 +0100
commit2c14c9bce3b22462cce982258ddecb53df16ab49 (patch)
treecf0ad4582d938b5190af804fdeaea7ea9d1aeb4b /src/lib.rs
parent886183066d3bb8c359aaf6442e9201bab8cd4694 (diff)
rtic::mutex::prelude::* fixes glob import lint
rtic-core Mutex, Exclusive and multi-lock retained in old location to not be backwards breaking
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 25f9399..d3195a6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -42,6 +42,11 @@ pub use cortex_m_rtic_macros::app;
pub use rtic_core::{prelude as mutex_prelude, Exclusive, Mutex};
pub use rtic_monotonic::{self, Monotonic};
+/// module `mutex::prelude` provides `Mutex` and multi-lock variants. Recommended over `mutex_prelude`
+pub mod mutex {
+ pub use rtic_core::prelude;
+}
+
#[doc(hidden)]
pub mod export;
#[doc(hidden)]