From 15bbbdad9a2b5d94345142bd76a593215529646c Mon Sep 17 00:00:00 2001 From: Pontus Andersson Date: Tue, 5 Nov 2024 11:10:41 +0100 Subject: [PATCH] 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 --- src/export.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/export.rs b/src/export.rs index 6f2a1b63c1..71e83411f5 100644 --- a/src/export.rs +++ b/src/export.rs @@ -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( /// - 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