File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ mod generate;
19
19
mod util;
20
20
21
21
use std:: fs:: File ;
22
- use std:: io:: { self , Write } ;
22
+ use std:: io:: Write ;
23
23
use std:: process;
24
24
25
25
use clap:: { App , Arg } ;
Original file line number Diff line number Diff line change @@ -264,10 +264,10 @@ impl U32Ext for u32 {
264
264
fn to_ty ( & self ) -> Result < Ident > {
265
265
Ok ( match * self {
266
266
1 => Ident :: new ( "bool" ) ,
267
- 2 ... 8 => Ident :: new ( "u8" ) ,
268
- 9 ... 16 => Ident :: new ( "u16" ) ,
269
- 17 ... 32 => Ident :: new ( "u32" ) ,
270
- 33 ... 64 => Ident :: new ( "u64" ) ,
267
+ 2 ..= 8 => Ident :: new ( "u8" ) ,
268
+ 9 ..= 16 => Ident :: new ( "u16" ) ,
269
+ 17 ..= 32 => Ident :: new ( "u32" ) ,
270
+ 33 ..= 64 => Ident :: new ( "u64" ) ,
271
271
_ => Err ( format ! (
272
272
"can't convert {} bits into a Rust integral type" ,
273
273
* self
@@ -278,10 +278,10 @@ impl U32Ext for u32 {
278
278
fn to_ty_width ( & self ) -> Result < u32 > {
279
279
Ok ( match * self {
280
280
1 => 1 ,
281
- 2 ... 8 => 8 ,
282
- 9 ... 16 => 16 ,
283
- 17 ... 32 => 32 ,
284
- 33 ... 64 => 64 ,
281
+ 2 ..= 8 => 8 ,
282
+ 9 ..= 16 => 16 ,
283
+ 17 ..= 32 => 32 ,
284
+ 33 ..= 64 => 64 ,
285
285
_ => Err ( format ! (
286
286
"can't convert {} bits into a Rust integral type width" ,
287
287
* self
You can’t perform that action at this time.
0 commit comments