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:
Pontus Andersson 2024-11-05 11:10:41 +01:00
parent 035ecb565c
commit 15bbbdad9a

View file

@ -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