clippy fails on `src/main.rs`
Clippy fails with:
error: field `0` is never read
--> src/main.rs:45:16
|
45 | Bootconfig(std::io::Error),
| ---------- ^^^^^^^^^^^^^^
| |
| field in this variant
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
45 | Bootconfig(()),
| ~~
error: field `0` is never read
--> src/main.rs:46:15
|
46 | DiskImage(std::io::Error),
| --------- ^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
46 | DiskImage(()),
| ~~
error: field `0` is never read
--> src/main.rs:47:16
|
47 | Partitions(std::io::Error),
| ---------- ^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
47 | Partitions(()),
| ~~
error: field `0` is never read
--> src/main.rs:48:21
|
48 | TransformSparse(std::io::Error),
| --------------- ^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
48 | TransformSparse(()),
| ~~
error: field `0` is never read
--> src/main.rs:49:11
|
49 | Uboot(std::io::Error),
| ----- ^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
49 | Uboot(()),
| ~~
error: field `0` is never read
--> src/main.rs:50:12
|
50 | Vbmeta(std::io::Error),
| ------ ^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
50 | Vbmeta(()),
| ~~
error: could not compile `cvd2img` (bin "cvd2img") due to 6 previous errors