File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ fn main() {
20
20
let vector = [0, 1, 2];
21
21
let _ = vector.iter().count();
22
22
23
- // should not fix, because type is slice.
23
+ // The type is slice, so should not fix
24
24
let _ = &[1, 2, 3].bytes().count();
25
25
26
26
let bytes: &[u8] = &[1, 2, 3];
27
27
bytes.bytes().count();
28
28
29
- // should not fix, because type is File.
29
+ // The type is File, so should not fix
30
30
let _ = File::open("foobar").unwrap().bytes().count();
31
31
32
32
let f = File::open("foobar").unwrap();
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ fn main() {
20
20
let vector = [ 0 , 1 , 2 ] ;
21
21
let _ = vector. iter ( ) . count ( ) ;
22
22
23
- // should not fix, because type is slice.
23
+ // The type is slice, so should not fix
24
24
let _ = & [ 1 , 2 , 3 ] . bytes ( ) . count ( ) ;
25
25
26
26
let bytes: & [ u8 ] = & [ 1 , 2 , 3 ] ;
27
27
bytes. bytes ( ) . count ( ) ;
28
28
29
- // should not fix, because type is File.
29
+ // The type is File, so should not fix
30
30
let _ = File :: open ( "foobar" ) . unwrap ( ) . bytes ( ) . count ( ) ;
31
31
32
32
let f = File :: open ( "foobar" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments