mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-25 03:19:34 +01:00
Make clippy happy
Fix doc list indentation lint[1] and ignore `new_without_default`[2]. [1]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [2]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
This commit is contained in:
parent
035ecb565c
commit
15bbbdad9a
1 changed files with 2 additions and 1 deletions
|
@ -88,6 +88,7 @@ pub struct Barrier {
|
|||
}
|
||||
|
||||
impl Barrier {
|
||||
#[allow(clippy::new_without_default)]
|
||||
pub const fn new() -> Self {
|
||||
Barrier {
|
||||
inner: AtomicBool::new(false),
|
||||
|
@ -264,7 +265,7 @@ pub unsafe fn lock<T, R, const M: usize>(
|
|||
/// - we execute the closure in a global critical section (interrupt free)
|
||||
/// - CS entry cost, single write to core register
|
||||
/// - CS exit cost, single write to core register
|
||||
/// else
|
||||
/// - else
|
||||
/// - The `mask` value is folded to a constant at compile time
|
||||
/// - CS entry, single write of the 32 bit `mask` to the `icer` register
|
||||
/// - CS exit, single write of the 32 bit `mask` to the `iser` register
|
||||
|
|
Loading…
Reference in a new issue