Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore dead_code warnings for tuple structs
``` error: field `0` is never read --> src/lib.rs:756:23 | 756 | pub struct Align1(u8); | ------ ^^ | | | field in this struct | = 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 | 756 | pub struct Align1(()); | ~~ error: field `0` is never read --> src/lib.rs:758:23 | 758 | pub struct Align2(u16); | ------ ^^^ | | | field in this struct | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 758 | pub struct Align2(()); | ~~ error: field `0` is never read --> src/lib.rs:760:23 | 760 | pub struct Align4(u32); | ------ ^^^ | | | field in this struct | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 760 | pub struct Align4(()); | ~~ error: field `0` is never read --> src/lib.rs:762:23 | 762 | pub struct Align8(u64); | ------ ^^^ | | | field in this struct | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 762 | pub struct Align8(()); | ~~ error: field `0` is never read --> src/lib.rs:764:24 | 764 | pub struct Align16(u128); | ------- ^^^^ | | | field in this struct | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 764 | pub struct Align16(()); | ~~ ```
- Loading branch information