Optimized windows-sys features #23
development.yml
on: push
Annotations
9 warnings
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L194
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:194:38
|
194 | let mut ut_indicators = vec![0 as u8; header.isutcnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L190
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:190:44
|
190 | let mut std_wall_indicators = vec![0 as u8; header.isstdcnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L186
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:186:44
|
186 | let mut leap_second_records = vec![0 as u8; (size + 4) * header.leapcnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L182
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:182:47
|
182 | let mut time_zone_designations = vec![0 as u8; header.charcnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L178
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:178:48
|
178 | let mut local_time_type_records = vec![0 as u8; 6 * header.typecnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L174
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:174:41
|
174 | let mut transition_types = vec![0 as u8; header.timecnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u8` is unnecessary:
core/src/time/tzif.rs#L170
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:170:41
|
170 | let mut transition_times = vec![0 as u8; size * header.timecnt as usize];
| ^^^^^^^ help: try: `0_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
redundant field names in struct initialization:
core/src/time/tzif.rs#L241
warning: redundant field names in struct initialization
--> core/src/time/tzif.rs:241:21
|
241 | local_time_type_records: local_time_type_records,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `local_time_type_records`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
redundant field names in struct initialization:
core/src/time/tzif.rs#L223
warning: redundant field names in struct initialization
--> core/src/time/tzif.rs:223:21
|
223 | local_time_type_records: local_time_type_records,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `local_time_type_records`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `#[warn(clippy::redundant_field_names)]` on by default
|