Fix lints in nightly (#14543)

# Objective

Similar to #14537 , this fixes a minor lint issue causing CI failures
when using nightly toolchain.

## Solution

Add `#[allow(dead_code)]` to unused sample code.

## Testing

`cargo run -p ci -- lints` using 1.82 toolchain.
This commit is contained in:
Rich Churcher 2024-07-31 13:35:19 +12:00 committed by GitHub
parent 399219a2c7
commit 924f1cbc02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,7 @@ pub struct C(usize);
/// Deriving reflect on an enum will implement the `Reflect` and `Enum` traits
#[derive(Reflect)]
#[allow(dead_code)]
enum D {
A,
B(usize),
@ -57,6 +58,7 @@ pub struct E {
/// that these values behave as expected when nested underneath Reflect-ed structs.
#[derive(Reflect, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[reflect_value(PartialEq, Serialize, Deserialize)]
#[allow(dead_code)]
enum F {
X,
Y,