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 3333#![ deny( missing_docs) ]  
3434#![ no_std]  
3535#![ allow( clippy:: identity_op) ]  
36+ #![ allow( clippy:: missing_safety_doc) ]  
3637
3738extern  crate  aligned; 
3839extern  crate  bare_metal; 
Original file line number Diff line number Diff 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); 
Original file line number Diff line number Diff 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} 
Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: needless_doctest_main) ]  
12//! Core peripherals 
23//! 
34//! # API 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments