mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
rtic::mutex::prelude::* fixes glob import lint
rtic-core Mutex, Exclusive and multi-lock retained in old location to not be backwards breaking
This commit is contained in:
parent
886183066d
commit
2c14c9bce3
5 changed files with 9 additions and 3 deletions
|
@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
|
||||
### Fixed
|
||||
|
||||
- Re-export `rtic_core::prelude` as `rtic::mutex::prelude` to allow glob imports + Clippy
|
||||
- Fix dated migration docs for spawn
|
||||
- Force mdBook to return error codes
|
||||
- Readded missing ramfunc output to book
|
||||
|
|
|
@ -97,7 +97,7 @@ pub fn codegen(
|
|||
#[allow(non_snake_case)]
|
||||
fn #name(#context: #name::Context) {
|
||||
use rtic::Mutex as _;
|
||||
use rtic::mutex_prelude::*;
|
||||
use rtic::mutex::prelude::*;
|
||||
|
||||
#(#stmts)*
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ pub fn codegen(
|
|||
#[allow(non_snake_case)]
|
||||
fn #name(#context: #name::Context) -> ! {
|
||||
use rtic::Mutex as _;
|
||||
use rtic::mutex_prelude::*;
|
||||
use rtic::mutex::prelude::*;
|
||||
|
||||
#(#stmts)*
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ pub fn codegen(
|
|||
#[allow(non_snake_case)]
|
||||
fn #name(#context: #name::Context #(,#inputs)*) {
|
||||
use rtic::Mutex as _;
|
||||
use rtic::mutex_prelude::*;
|
||||
use rtic::mutex::prelude::*;
|
||||
|
||||
#(#stmts)*
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue