File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ pub extern "C" fn rust_trap(tf: &mut TrapFrame) {
86
86
Breakpoint => breakpoint ( ) ,
87
87
DoubleFault => double_fault ( tf) ,
88
88
PageFault => page_fault ( tf) ,
89
- IRQ0 ... 63 => {
89
+ IRQ0 ..= 63 => {
90
90
let irq = tf. trap_num as u8 - IRQ0 ;
91
91
super :: ack ( irq) ; // must ack before switching
92
92
match irq {
Original file line number Diff line number Diff line change 10
10
#![ deny( unused_must_use) ]
11
11
#![ deny( stable_features) ]
12
12
#![ deny( unused_unsafe) ]
13
+ #![ deny( ellipsis_inclusive_range_patterns) ]
13
14
#![ no_std]
14
15
15
16
// just keep it ...
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ impl CharacterAttribute {
45
45
24 => self . underline = false ,
46
46
27 => self . reverse = false ,
47
47
29 => self . strikethrough = false ,
48
- 30 ... 37 | 90 ... 97 => self . foreground = ConsoleColor :: from_console_code ( code) . unwrap ( ) ,
49
- 40 ... 47 | 100 ... 107 => {
48
+ 30 ..= 37 | 90 ..= 97 => self . foreground = ConsoleColor :: from_console_code ( code) . unwrap ( ) ,
49
+ 40 ..= 47 | 100 ..= 107 => {
50
50
self . background = ConsoleColor :: from_console_code ( code - 10 ) . unwrap ( )
51
51
}
52
52
_ => { /* unimplemented!() */ }
@@ -136,7 +136,7 @@ impl EscapeParser {
136
136
_ => { /* unimplemented!() */ }
137
137
} ,
138
138
ParseStatus :: ParsingCSI => match byte {
139
- b'0' ... b'9' => {
139
+ b'0' ..= b'9' => {
140
140
let digit = ( byte - b'0' ) as u32 ;
141
141
let param = self . current_param . unwrap_or ( 0 ) as u32 ;
142
142
let res = param * 10 + digit;
@@ -150,7 +150,7 @@ impl EscapeParser {
150
150
return None ;
151
151
}
152
152
// @A–Z[\]^_`a–z{|}~
153
- 0x40 ... 0x7E => {
153
+ 0x40 ..= 0x7E => {
154
154
if let Some ( param) = self . current_param {
155
155
self . params . push ( param) . unwrap ( ) ;
156
156
}
You can’t perform that action at this time.
0 commit comments