Skip to content

Commit 65afff4

Browse files
committed
Make clippy happy, again.
1 parent f505673 commit 65afff4

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#![deny(missing_docs)]
3434
#![no_std]
3535
#![allow(clippy::identity_op)]
36+
#![allow(clippy::missing_safety_doc)]
3637

3738
extern crate aligned;
3839
extern crate bare_metal;

src/macros.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ macro_rules! singleton {
7878
/// ``` compile_fail
7979
/// use cortex_m::singleton;
8080
///
81-
/// fn main() {}
82-
///
8381
/// fn foo() {
8482
/// // check that the call to `uninitialized` requires unsafe
8583
/// singleton!(: u8 = std::mem::uninitialized());
@@ -92,8 +90,6 @@ const CFAIL: () = ();
9290
/// #![deny(unsafe_code)]
9391
/// use cortex_m::singleton;
9492
///
95-
/// fn main() {}
96-
///
9793
/// fn foo() {
9894
/// // check that calls to `singleton!` don't trip the `unsafe_code` lint
9995
/// singleton!(: u8 = 0);

src/peripheral/dwt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ impl DWT {
8282
#[cfg(not(armv6m))]
8383
pub fn unlock() {
8484
// NOTE(unsafe) atomic write to a stateless, write-only register
85-
unsafe { (*Self::ptr()).lar.write(0xC5ACCE55) }
85+
unsafe { (*Self::ptr()).lar.write(0xC5AC_CE55) }
8686
}
8787
}

src/peripheral/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::needless_doctest_main)]
12
//! Core peripherals
23
//!
34
//! # API

0 commit comments

Comments
 (0)