Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epontan committed Nov 5, 2024
1 parent 035ecb5 commit 15bbbda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pub struct Barrier {
}

impl Barrier {
#[allow(clippy::new_without_default)]
pub const fn new() -> Self {
Barrier {
inner: AtomicBool::new(false),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15bbbda

Please sign in to comment.