File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 33
33
#![ deny( missing_docs) ]
34
34
#![ no_std]
35
35
#![ allow( clippy:: identity_op) ]
36
+ #![ allow( clippy:: missing_safety_doc) ]
36
37
37
38
extern crate aligned;
38
39
extern crate bare_metal;
Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ macro_rules! singleton {
78
78
/// ``` compile_fail
79
79
/// use cortex_m::singleton;
80
80
///
81
- /// fn main() {}
82
- ///
83
81
/// fn foo() {
84
82
/// // check that the call to `uninitialized` requires unsafe
85
83
/// singleton!(: u8 = std::mem::uninitialized());
@@ -92,8 +90,6 @@ const CFAIL: () = ();
92
90
/// #![deny(unsafe_code)]
93
91
/// use cortex_m::singleton;
94
92
///
95
- /// fn main() {}
96
- ///
97
93
/// fn foo() {
98
94
/// // check that calls to `singleton!` don't trip the `unsafe_code` lint
99
95
/// singleton!(: u8 = 0);
Original file line number Diff line number Diff line change @@ -82,6 +82,6 @@ impl DWT {
82
82
#[ cfg( not( armv6m) ) ]
83
83
pub fn unlock ( ) {
84
84
// 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 ) }
86
86
}
87
87
}
Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: needless_doctest_main) ]
1
2
//! Core peripherals
2
3
//!
3
4
//! # API
You can’t perform that action at this time.
0 commit comments