This repository was archived by the owner on Jul 6, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
//! Generic char output trait.
17
17
18
- use core:: ops:: Slice ;
19
18
use core:: str:: { Str , StrSlice } ;
20
19
use core:: slice:: ImmutableSlice ;
21
20
use core:: collections:: Collection ;
Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ pub extern fn isr_default_fault() {
46
46
#[ cfg( test) ]
47
47
pub extern fn isr_default_fault ( ) { unimplemented ! ( ) }
48
48
49
+ #[ allow( non_upper_case_globals) ]
49
50
const ISRCount : uint = 16 ;
50
51
51
52
#[ link_section=".isr_vector" ]
53
+ #[ allow( non_upper_case_globals) ]
52
54
#[ no_mangle]
53
55
pub static ISRVectors : [ Option < unsafe extern fn ( ) > , ..ISRCount ] = [
54
56
Some ( __STACK_BASE) ,
Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ extern {
88
88
fn isr_soft ( ) ;
89
89
}
90
90
91
+ #[ allow( non_upper_case_globals) ]
91
92
const ISRCount : uint = 95 ;
92
93
93
94
#[ link_section=".isr_vector_nvic" ]
95
+ #[ allow( non_upper_case_globals) ]
94
96
#[ no_mangle]
95
97
pub static NVICVectors : [ Option < unsafe extern fn ( ) > , ..ISRCount ] = [
96
98
Some ( isr_dma_0) ,
Original file line number Diff line number Diff line change 18
18
use super :: pin;
19
19
20
20
/// Enable clock to a PORTx peripheral
21
- #[ allow( non_snake_case_functions ) ]
21
+ #[ allow( non_snake_case ) ]
22
22
pub fn enable_PORT ( port : pin:: Port ) {
23
23
match port {
24
24
pin:: PortA => { reg:: SIM . scgc5 . set_porta ( true ) ; } ,
Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ extern fn begin_unwind() {}
33
33
#[ cfg( not( test) ) ]
34
34
#[ lang="fail_fmt" ]
35
35
#[ no_stack_check]
36
- pub fn fail_fmt ( fmt : & Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
36
+ pub fn fail_fmt ( _fmt : & Arguments , _file_line : & ( & ' static str , uint ) ) -> ! {
37
37
loop { }
38
38
}
You can’t perform that action at this time.
0 commit comments