embedded-sdmmc-rs
embedded-sdmmc-rs copied to clipboard
warning: field `0` is never read
There are several warnings from clippy when running cargo test for the project:
warning: field `0` is never read
--> examples/readme_test.rs:80:16
|
80 | Filesystem(embedded_sdmmc::Error<embedded_sdmmc::SdCardError>),
| ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
80 | Filesystem(()),
| ~~
warning: field `0` is never read
--> examples/readme_test.rs:81:10
|
81 | Disk(embedded_sdmmc::SdCardError),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| 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
|
81 | Disk(()),
| ~~
warning: field `0` is never read
--> tests/utils/mod.rs:46:8
|
46 | Io(std::io::Error),
| -- ^^^^^^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
46 | Io(()),
| ~~
warning: field `0` is never read
--> tests/utils/mod.rs:48:12
|
48 | Decode(flate2::DecompressError),
| ------ ^^^^^^^^^^^^^^^^^^^^^^^
| |
| 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 | Decode(()),
| ~~
warning: field `0` is never read
--> tests/utils/mod.rs:50:17
|
50 | OutOfBounds(BlockIdx),
| ----------- ^^^^^^^^
| |
| 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 | OutOfBounds(()),
| ~~
warning: `embedded-sdmmc` (example "readme_test") generated 2 warnings
warning: `embedded-sdmmc` (test "open_files") generated 3 warnings (3 duplicates)
warning: `embedded-sdmmc` (test "write_file") generated 3 warnings
warning: `embedded-sdmmc` (test "volume") generated 3 warnings (3 duplicates)
warning: `embedded-sdmmc` (test "directories") generated 3 warnings (3 duplicates)
warning: `embedded-sdmmc` (test "read_file") generated 3 warnings (3 duplicates)