Added initial implementation of time feature with support for unix sy… #21
development.yml
on: push
Annotations
1 error and 12 warnings
Build & Test (windows-2019)
Process completed with exit code 1.
|
unused import: `raw_cpuid::CpuId`:
core/src/cpu_info/x86_64.rs#L30
warning: unused import: `raw_cpuid::CpuId`
--> core/src/cpu_info/x86_64.rs:30:5
|
30 | use raw_cpuid::CpuId;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `raw_cpuid::CpuId`:
core/src/cpu_info/x86_64.rs#L30
warning: unused import: `raw_cpuid::CpuId`
--> core/src/cpu_info/x86_64.rs:30:5
|
30 | use raw_cpuid::CpuId;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
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:38
|
182 | 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#L180
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:180:44
|
180 | 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#L178
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:178:44
|
178 | 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#L176
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:176:47
|
176 | 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#L174
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:174:48
|
174 | 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#L172
warning: casting integer literal to `u8` is unnecessary
--> core/src/time/tzif.rs:172:41
|
172 | 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#L208
warning: redundant field names in struct initialization
--> core/src/time/tzif.rs:208:21
|
208 | 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#L198
warning: redundant field names in struct initialization
--> core/src/time/tzif.rs:198:21
|
198 | 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
|
unused import: `raw_cpuid::CpuId`:
core/src/cpu_info/x86_64.rs#L30
warning: unused import: `raw_cpuid::CpuId`
--> core/src/cpu_info/x86_64.rs:30:5
|
30 | use raw_cpuid::CpuId;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|