This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around dead_code warning in tests
warning: field `0` is never read --> tests/test_error.rs:58:11 | 58 | C(C), | - ^ | | | 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 | 58 | C(()), | ~~ warning: field `0` is never read --> tests/test_error.rs:165:11 | 165 | V(usize), | - ^^^^^ | | | 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 | 165 | V(()), | ~~ warning: field `0` is never read --> tests/test_error.rs:217:15 | 217 | Inner(Inner), | ----- ^^^^^ | | | 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 | 217 | Inner(()), | ~~ warning: field `0` is never read --> tests/test_error.rs:221:17 | 221 | Variant(Vec<usize>), | ------- ^^^^^^^^^^ | | | 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 | 221 | Variant(()), | ~~ warning: field `0` is never read --> tests/test_error.rs:250:11 | 250 | V(usize), | - ^^^^^ | | | 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 | 250 | V(()), | ~~ warning: fields `0` and `1` are never read --> tests/test_error.rs:367:14 | 367 | struct S(usize, Option<Box<S>>); | - ^^^^^ ^^^^^^^^^^^^^^ | | | fields in this struct | = note: `S` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 367 | struct S((), ()); | ~~ ~~ warning: field `0` is never read --> tests/test_error.rs:378:14 | 378 | struct S(Option<Box<S>>); | - ^^^^^^^^^^^^^^ | | | field in this struct | = note: `S` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 378 | struct S(()); | ~~ warning: fields `0` and `1` are never read --> tests/test_error.rs:403:14 | 403 | struct S(usize, Option<Box<S>>); | - ^^^^^ ^^^^^^^^^^^^^^ | | | fields in this struct | = note: `S` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 403 | struct S((), ()); | ~~ ~~
- Loading branch information